Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3402942.3409603acmotherconferencesArticle/Chapter ViewAbstractPublication PagesfdgConference Proceedingsconference-collections
research-article
Open access

Spatial Layout of Procedural Dungeons Using Linear Constraints and SMT Solvers

Published: 17 September 2020 Publication History

Abstract

Dungeon generation is among the oldest problems in procedural content generation. Creating the spatial aspects of a dungeon requires three steps: random generation of rooms and sizes, placement of these rooms inside a fixed area, and connecting rooms with passageways. This paper uses a series of integer linear constraints, solved by a satisfiability modulo theories (SMT) solver, to perform the placement step. Separation constraints ensure dungeon rooms do not intersect and maintain a minimum fixed separation. Designers can specify control lines, and dungeon rooms will be placed within a fixed distance of these control lines. Generation times vary with number of rooms and constraints, but are often very fast. Spatial distribution of solutions tend to have hot spots, but is surprisingly uniform given the underlying complexity of the solver. The approach demonstrates the effectiveness of a declarative approach to dungeon layout generation, where designers can express desired intent, and the SMT solver satisfies this if possible.

References

[1]
A Adonaac. 2015. Procedural Dungeon Generation Algorithm. https://www.gamasutra.com/blogs/AAdonaac/20150903/252889/Procedural_Dungeon_Generation_Algorithm.php Library Catalog: www.gamasutra.com.
[2]
Anthony J. Smith and Joanna J. Bryson. 2014. A Logical Approach to Building Dungeons: Answer Set Programming for Hierarchical Procedural Content Generation in Roguelike Games. In Proceedings of the 50th Anniversary Convention of the AISB.
[3]
Antonios Liapis, Giorgios N. Yannakakis, and Julian Togelius. 2013. Sentient Sketchbook: Computer-Aided Game Level Authoring. In Proceedings of the 8th International Conference on the Foundations of Digital Games (FDG 2013). Chania, Crete, Greece.
[4]
Franz Aurenhammer, Rolf Klein, and Der-tsai Lee. 2013. Voronoi Diagrams And Delaunay Triangulations. World Scientific Publishing Company. Google-Books-ID: cic8DQAAQBAJ.
[5]
Alexander Baldwin, Steve Dahlskog, Jose M. Font, and Johan Holmberg. 2017. Mixed-initiative procedural generation of dungeons using game design patterns. In 2017 IEEE Conference on Computational Intelligence and Games (CIG). 25–32. https://doi.org/10.1109/CIG.2017.8080411 ISSN: 2325-4289.
[6]
J. Timothy Balint and Rafael Bidarra. 2019. A generalized semantic representation for procedural generation of rooms. In Proceedings of the 14th International Conference on the Foundations of Digital Games(FDG ’19). Association for Computing Machinery, San Luis Obispo, California, 1–8. https://doi.org/10.1145/3337722.3341848
[7]
Jessica R. Baron. 2017. Procedural Dungeon Generation Analysis and Adaptation. In Proceedings of the SouthEast Conference(ACM SE ’17). Association for Computing Machinery, Kennesaw, GA, USA, 168–171. https://doi.org/10.1145/3077286.3077566
[8]
Bob Nystrom. 2014. Rooms and Mazes: A Procedural Dungeon Generator – journal.stuffwithstuff.com. http://journal.stuffwithstuff.com/2014/12/21/rooms-and-mazes/
[9]
Carlos Calderon, Marc Cavazza, and Daniel Diaz. 2003. A New Approach to the Interactive Resolution of Configuration Problems in Virtual Environments. In Third International Symposium on Smart Graphics (SG 2003). Heidelberg, Germany.
[10]
Daniël Karavolos, Anders Bouwer, and Rafael Bidarra. 2015. Mixed-Initiative Design of Game Levels: Integrating Mission and Space into Level Generation. In Proceedings of the 10th International Conference on the Foundations of Digital Games (FDG 2015). Asilomar Conference Center, Monterey, California, USA. http://www.fdg2015.org/papers/fdg2015_paper_25.pdf
[11]
Danny Lobos and Dirk Donath. 2010. The problem of space layout in architecture: A survey and reflections. arquiteturarevista 6, 2 (Dec. 2010), 136–161. https://doi.org/10.4013/arq.2010.62.05
[12]
Leonardo De Moura and Nikolaj Bjørner. 2008. Z3: an efficient SMT solver. In Proceedings of the Theory and practice of software, 14th international conference on Tools and algorithms for the construction and analysis of systems(TACAS’08/ETAPS’08). Springer-Verlag, Budapest, Hungary, 337–340.
[13]
Joris Dormans and Sander Bakkes. 2011. Generating Missions and Spaces for Adaptable Play Experiences. IEEE Transactions on Computational Intelligence and AI in Games 3, 3 (Sept. 2011), 216–228. https://doi.org/10.1109/TCIAIG.2011.2149523
[14]
Evan Hahn, Prosenjit Bose, and Anthony Whitehead. 2006. Persistent Realtime Building Interior Generation. In Sandbox ’06: Proceedings of the 2006 ACM SIGGRAPH symposium on Videogames.
[15]
R.L. Graham and Pavol Hell. 1985. On the History of the Minimum Spanning Tree Problem. Annals of the History of Computing 7, 1 (Jan. 1985), 43–57. https://doi.org/10.1109/MAHC.1985.10011 Conference Name: Annals of the History of Computing.
[16]
Nathan Hilliard, John Salis, and Hala ELAarag. 2017. Algorithms for procedural dungeon generation. Journal of Computing Sciences in Colleges 33, 1 (Oct. 2017), 166–174.
[17]
Xavier Ho and Marcus Carter. 2019. Roguelike ancestry network visualisation: insights from the roguelike community. In Proceedings of the 14th International Conference on the Foundations of Digital Games(FDG ’19). Association for Computing Machinery, San Luis Obispo, California, 1–9. https://doi.org/10.1145/3337722.3337761
[18]
Hoda Homayouni. 2006. A Survey of Computational Approaches to Space Layout Planning (1965-2000). Technical Report. University of Washington, Department of Architecture and Urban Planning. https://www.semanticscholar.org/paper/A-Survey-of-Computational-Approaches-to-Space-Homayouni/3a4cda7185ff22647c8b895117f12c625dae4beb
[19]
Ruizhen Hu, Zeyu Huang, Yuhan Tang, Oliver van Kaick, Hao Zhang, and Hui Huang. 2020. Graph2Plan: Learning Floorplan Generation from Layout Graphs. (April 2020). http://arxiv.org/abs/2004.13204 arXiv: 2004.13204.
[20]
Jess Martin. 2006. Procedural House Generation: A method for dynamically generating floor plans. In Proceedings of the Symposium on Interactive Computer Graphics and Games.
[21]
Kai Wang, Yu-An Lin, Ben Weissmann, Manolis Savva, Angel X. Chang, and Daniel Ritchie. 2019. PlanIT: Planning and Instantiating Indoor Scenes with Relation Graph and Spatial Prior Networks. In SIGGRAPH.
[22]
Ken Xu, James Stewart, and Eugene Fiume. 2002. Constraint-based Automatic Placement for Scene Composition. Grahpics Interface 2 (May 2002), 25–34.
[23]
Becky Lavender and Tommy Thompson. 2017. A Generative Grammar Approach for Action-Adventure Map Generation in The Legend of Zelda. University of Sheffield. http://www.t2thompson.com/wp-content/uploads/2016/03/zelda-aisb-2016.pdf
[24]
Antonios Liapis, Christoffer Holmgård, Georgios N. Yannakakis, and Julian Togelius. 2015. Procedural Personas as Critics for Dungeon Generation. In Applications of Evolutionary Computation(Lecture Notes in Computer Science), Antonio M. Mora and Giovanni Squillero (Eds.). Springer International Publishing, Cham, 331–343. https://doi.org/10.1007/978-3-319-16549-3_27
[25]
Nathan Williams. 2014. An Investigation in Techniques used to Procedurally Generate Dungeon Structures. Technical Report. http://www.nathanmwilliams.com/files/AnInvestigationIntoDungeonGeneration.pdf
[26]
Charles E. Pfefferkorn. 1975. A heuristic problem solving design system for equipment or furniture layouts. Commun. ACM 18, 5 (May 1975), 286–297. https://doi.org/10.1145/360762.360817
[27]
Riccardo Lopes, Tim Tutenel, Ruben M. Smelik, Klaas Jan de Kraker, and Rafael Bidarra. 2010. A constrained growth method for procedural floor plan generation. In Proc. 11th International Conference on Intelligent Games and Simulation (GAME-ON 2010). Leicester, United Kingdom, 13–20.
[28]
Timothy Roden and Ian Parberry. 2004. From Artistry to Automation: A Structured Methodology for Procedural Content Creation. In Entertainment Computing – ICEC 2004(Lecture Notes in Computer Science), Matthias Rauterberg (Ed.). Springer, Berlin, Heidelberg, 151–156. https://doi.org/10.1007/978-3-540-28643-1_19
[29]
Roland van der Linden, Ricardo Lopes, and Rafael Bidarra. 2013. Designing Procedurally Generated Levels. In Proceedings of the Workshop on AI in the Game Design Process (AIIDE 2013).
[30]
Noor Shaker, Antonios Liapis, Julian Togelius, Ricardo Lopes, and Rafael Bidarra. 2016. Constructive generation methods for dungeons and levels. In Procedural Content Generation in Games, Noor Shaker, Julian Togelius, and Mark J. Nelson(Eds.). Springer International Publishing, Cham, 31–55. https://doi.org/10.1007/978-3-319-42716-4_3
[31]
Adam M. Smith and Michael Mateas. 2011. Answer Set Programming for Procedural Content Generation: A Design Space Approach. IEEE Transactions on Computational Intelligence and AI in Games 3, 3 (Sept. 2011), 187–200. https://doi.org/10.1109/TCIAIG.2011.2158545
[32]
Thomas Smith, Julian Padget, and Andrew Vidler. 2018. Graph-based generation of action-adventure dungeon levels using answer set programming. In Proceedings of the 13th International Conference on the Foundations of Digital Games(FDG ’18). Association for Computing Machinery, Malmö, Sweden, 1–10. https://doi.org/10.1145/3235765.3235817
[33]
Stanislaus Chaillou. 2019. AI+ Architecture: Towards a New Approach. Ph.D. Dissertation. Harvard University, Graduate School of Design. https://www.academia.edu/39599650/AI_Architecture_Towards_a_New_Approach
[34]
Petar Borisov Stoykov. 2017. Rectangle Packing in Practice. Master’s thesis. TU Eindhoven.
[35]
Tim Tutenel, Rafael Bidarra, Ruben M. Smelik, and Klas Jan de Kraker. 2009. Rule-based layout solving and its application to procedural interior generation. In CASA Workshop on 3D Advanced Media in Gaming and Simulation.
[36]
Tim Tutenel, Rafael Bidarra, Ruben M. Smelik, and Klaas Jan De Kraker. 2008. The role of semantics in games and simulations. Computers in Entertainment 6, 4 (Dec. 2008), 57:1–57:35. https://doi.org/10.1145/1461999.1462009
[37]
U. Flemming, R. Coyne, T. Glavin, and M. Rychener. 1988. A Generative Expert System for the Design of Building Layouts. Technical Report EDRC-48-08-88. Carnegie Mellon University.
[38]
Valtchan Valtchanov and Joseph Alexander Brown. 2012. Evolving dungeon crawler levels with relative placement. In Proceedings of the Fifth International C* Conference on Computer Science and Software Engineering(C3S2E ’12). Association for Computing Machinery, Montreal, Quebec, Canada, 27–35. https://doi.org/10.1145/2347583.2347587
[39]
Roland van der Linden, Ricardo Lopes, and Rafael Bidarra. 2014. Procedural Generation of Dungeons. IEEE Transactions on Computational Intelligence and AI in Games 6, 1 (March 2014), 78–89. https://doi.org/10.1109/TCIAIG.2013.2290371
[40]
Véronique Gaildrat. 2007. Declarative modelling of virtual environments, overview of issues and applications. In International Conference on Computer Graphics and Artificial Intelligence (3IA 2007). Athens, Greece.

Cited By

View all
  • (2024)Searching Questions and Learning Problems in Large Problem Banks: Constructing Tests and Assignments on the FlyComputers10.3390/computers1306014413:6(144)Online publication date: 5-Jun-2024
  • (2024)Managing and controlling digital role-playing game elements: A current state of affairsEntertainment Computing10.1016/j.entcom.2024.10070851(100708)Online publication date: Sep-2024
  • (2023)Generation of Code Tracing Problems from Open-Source CodeProceedings of the 54th ACM Technical Symposium on Computer Science Education V. 110.1145/3545945.3569774(875-881)Online publication date: 2-Mar-2023
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
FDG '20: Proceedings of the 15th International Conference on the Foundations of Digital Games
September 2020
804 pages
ISBN:9781450388078
DOI:10.1145/3402942
This work is licensed under a Creative Commons Attribution International 4.0 License.

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 17 September 2020

Check for updates

Author Tags

  1. SMT
  2. dungeon generation
  3. linear constraints
  4. procedural content generation
  5. rectangle packing
  6. satisfiability modulo theories

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Conference

FDG '20

Acceptance Rates

Overall Acceptance Rate 152 of 415 submissions, 37%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)299
  • Downloads (Last 6 weeks)28
Reflects downloads up to 25 Dec 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Searching Questions and Learning Problems in Large Problem Banks: Constructing Tests and Assignments on the FlyComputers10.3390/computers1306014413:6(144)Online publication date: 5-Jun-2024
  • (2024)Managing and controlling digital role-playing game elements: A current state of affairsEntertainment Computing10.1016/j.entcom.2024.10070851(100708)Online publication date: Sep-2024
  • (2023)Generation of Code Tracing Problems from Open-Source CodeProceedings of the 54th ACM Technical Symposium on Computer Science Education V. 110.1145/3545945.3569774(875-881)Online publication date: 2-Mar-2023
  • (2022)Debugging Procedural Level Designs with Mental MapsProceedings of the 17th International Conference on the Foundations of Digital Games10.1145/3555858.3564252(1-3)Online publication date: 5-Sep-2022
  • (2021)Tessera: A Practical System for Extended WaveFunctionCollapseProceedings of the 16th International Conference on the Foundations of Digital Games10.1145/3472538.3472605(1-7)Online publication date: 3-Aug-2021

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media