Skip to main content
Log in

GFGDA: general framework for generating dungeons with atmosphere

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

The atmosphere is one of the game elements that can significantly influence player's emotions. However, creating an immersive atmosphere that effectively influences player emotions poses several challenges, necessitating the utilization of various elements, such as audio-visual coordination and gameplay design. This paper introduces a general framework for procedurally generating dungeons with joyful and horror atmospheres in games, providing an abstract perspective to address these challenges. The proposed framework introduces a categorization system for game elements based on their role within the game. Leveraging this categorization, the Comprehensive Arrangement of Game Elements (CAGE) pattern is introduced, which facilitates the appropriate placement of elements within the dungeon environment. Subsequently, the General Framework for Generating Dungeons with Atmosphere (GFGDA) is employed to procedurally create the dungeon using the Feasible–Infeasible Two-Population (FI-2Pop) algorithm. To enhance gameplay experience, similar elements in the dungeon environment that impact gameplay are grouped and their coordination is evaluated by creating a graph based on the CAGE pattern. The transition and coordination of audio-visual elements along the path between these impactful elements are assessed in order to generate an immersive atmosphere within the dungeon. To ensure diversity, examining the variety of dungeons generated over 100 runs demonstrates that our method consistently produces distinct results in each iteration. Moreover, two comparative studies were conducted, one with 51 volunteers and another with 10 volunteers. In the first study, the Game Experience Questionnaire (GEQ) was utilized to assess the emotional impact of dungeons generated by our method. These were compared to dungeons created using a uniform random approach, alongside relevant research. The results suggest that our method significantly influences player emotions across the four components of the GEQ—sensory and imaginary immersion, flow, negative effects, and challenge—when compared to dungeons generated by the uniform random approach and another researched method. In another study, the emotional impact of two dungeons, one generated with joyful elements and the other with eerie elements, was evaluated using the GEQ. The findings indicate significant differences between the two components of the GEQ—tension and positive effects—when players interacted with the level containing joyful elements compared to the one with eerie elements.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15
Fig. 16
Fig. 17
Fig. 18

Similar content being viewed by others

Data availability

The GEQ test details for each player during the current study are available from the corresponding author on reasonable request.

References

  1. Freiknecht J, Effelsberg W (2017) A survey on the procedural generation of virtual worlds. Multimodal Technol Interact 1(4):27

    Article  Google Scholar 

  2. Hendrikx M, Meijer S, Van Der Velden J, Iosup A (2013) Procedural content generation for games: a survey. ACM Trans Multimed Comput Commun Appl (TOMM) 9(1):1–22

    Article  Google Scholar 

  3. Shaker N, Togelius J, Nelson MJ (2016) Procedural content generation in games. Springer

    Book  Google Scholar 

  4. Liapis A, Yannakakis GN, Nelson MJ, Preuss M, Bidarra R (2018) Orchestrating game generation. IEEE Trans Games 11(1):48–68

    Article  Google Scholar 

  5. Ribeiro G, Rogers K, Altmeyer M, Terkildsen T, Nacke LE (2020) "Game atmosphere: effects of audiovisual thematic cohesion on player experience and psychophysiology". In: Proceedings of the annual symposium on computer-human interaction in play pp 107–119

  6. Bentley M. "Atmosphere in Games." Gamasutra https://www.gamasutra.com/blogs/MatthewBentley/20130615/194399/Atmosphere_in_Games__Part_1__Atmosphere_introduced.php. Accessed June 15 2013

  7. Hunicke R, LeBlanc M, Zubek R (2004) "MDA: A formal approach to game design and game research". In: Proceedings of the AAAI workshop on challenges in game AI 4(1): San Jose, CA, p 1722

  8. Schell J (2008) "The art of game design: a book of lenses/by Jesse Schell". Ed: San Francisco, Calif.: Morgan Kaufmann; Oxford: Elsevier Science [distributor]

  9. Karpouzis K, Yannakakis GN (2016) Emotion in games. Springer

    Book  Google Scholar 

  10. Kimbrough SO, Koehler GJ, Lu M, Wood DH (2008) On a feasible–infeasible two-population (fi-2pop) genetic algorithm for constrained optimization: Distance tracing and no free lunch. Eur J Oper Res 190(2):310–327

    Article  MathSciNet  Google Scholar 

  11. Poels K, de Kort YA, IJsselsteijn WA (2007) D3.3: Game Experience Questionnaire: development of a self-report measure to assess the psychological impact of digital games. Technische Universiteit Eindhoven, Eindhoven

  12. Graja S, Lopes P, Chanel G (2020) Impact of visual and sound orchestration on physiological arousal and tension in a horror game. IEEE Trans games 13(3):287–299

    Article  Google Scholar 

  13. Adams E (2014) Fundamentals of game design. Pearson education

    Google Scholar 

  14. Lopes P, Liapis A, Yannakakis G (2015) Targeting horror via level and soundscape generation. In Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, vol 11, no 1. AAAI Press, Santa Cruz, CA, pp 37–43

  15. Baldwin A, Dahlskog S, Font JM, Holmberg J (2017) Towards pattern-based mixed-initiative dungeon generation. In: Proceedings of the 12th international conference on the foundations of digital games pp 1–10

  16. Togelius J, Yannakakis GN, Stanley KO, Browne C (2011) Search-based procedural content generation: A taxonomy and survey. IEEE Trans Comput Intell AI Games 3(3):172–186

    Article  Google Scholar 

  17. Viana BM, dos Santos SR (2021) Procedural dungeon generation: A survey. J Interact Syst 12(1):83–101

    Article  Google Scholar 

  18. Togelius J, Preuss M, Beume N, Wessing S, Hagelbäck J, Yannakakis GN (2010) "Multiobjective exploration of the starcraft map space". In: Proceedings of the 2010 IEEE conference on computational intelligence and games IEEE pp 265–272

  19. Lopes P, Liapis A, Yannakakis GN (2015) "Sonancia: Sonification of procedurally generated game levels. ICCC

    Google Scholar 

  20. Baghdadi W, Eddin FS, Al-Omari R, Alhalawani Z, Shaker M, Shaker N (2015) A procedural method for automatic generation of spelunky levels. European Conference on the Applications of Evolutionary Computation. Springer, pp 305–317

    Chapter  Google Scholar 

  21. Khalifa A, Perez-Liebana D, Lucas SM, Togelius J (2016) General video game level generation". In: Proceedings of the genetic and evolutionary computation conference 2016, pp 253–259

  22. Liapis A (2017) Multi-segment evolution of dungeon game levels. In: Proceedings of the genetic and evolutionary computation conference pp 203–210

  23. Loiacono D, Arnaboldi L (2018) Multiobjective evolutionary map design for cube 2: Sauerbraten. IEEE Trans Games 11(1):36–47

    Article  Google Scholar 

  24. Beaupre S, Wiles T, Briggs S, Smith G (2018) A design pattern approach for multi-game level generation. Proceed AAAI Conf Artif Intell Interact Digit Entertain 14:(1)

  25. Karavolos D, Liapis A, Yannakakis G (2019) A multifaceted surrogate model for search-based procedural content generation. IEEE Trans games 13(1):11–22

    Article  Google Scholar 

  26. Zafar A, Mujtaba H, Beg MO (2020) Search-based procedural content generation for GVG-LG. Appl Soft Comput 86:105909

    Article  Google Scholar 

  27. Sandhu A, Mitchell K, McCoy J (2021) "TileTerror: a system for procedurally generating 2D horror maps. In: Proceedings of the AAAI conference on artificial intelligence and interactive digital entertainment

  28. Pereira LT, de Souza Prado PV, Lopes RM, Toledo CFM (2021) Procedural generation of dungeons’ maps and locked-door missions through an evolutionary algorithm validated with players. Exp Syst Appl 180:115009

    Article  Google Scholar 

  29. Viana BM, Pereira LT, Toledo CF (2022) Illuminating the space of dungeon maps, locked-door missions and enemy placement through MAP-Elites. arXiv preprint arXiv:2202.09301

  30. Petrovas A, Bausys R (2022) Procedural Video Game Scene Generation by Genetic and Neutrosophic WASPAS Algorithms. Appl Sci 12(2):772

    Article  CAS  Google Scholar 

  31. Zhang K, Bai J, Liu J (2022) "Generating game levels of diverse behaviour engagement," arXiv preprint arXiv:2207.02100

  32. Jiang Z, Earle S, Green MC, Togelius J (2022) Learning controllable 3D level generators. arXiv preprint arXiv:2206.13623

  33. Moreno-Armendáriz MA, Calvo H, Torres-León JA, Duchanoy CA (2022) IORand: A Procedural Videogame Level Generator Based on a Hybrid PCG Algorithm. Appl Sci 12(8):3792

    Article  Google Scholar 

  34. Liapis A, Yannakakis GN, Togelius J (2013) Sentient sketchbook: computer-assisted game level authoring. In: 8th International Conference on the Foundations of Digital Games. ACM, Chania

  35. Baldwin A, Dahlskog S, Font JM, Holmberg J (2017) "Mixed-initiative procedural generation of dungeons using game design patterns". In: 2017 IEEE conference on computational intelligence and games (CIG), IEEE pp 25–32

  36. Alvarez A, Dahlskog S, Font J, Holmberg J, Johansson S (2018) Assessing aesthetic criteria in the evolutionary dungeon designer. In: Proceedings of the 13th international conference on the foundations of digital games, pp 1–4

  37. Walton SP, Rahat AA, Stovold J (2020) Mixed-Initiative procedural content generation using level design patterns and interactive evolutionary optimisation. arXiv preprint arXiv:2005.07478

  38. Guzdial MJ, Chen J, Chen S-Y, Riedl M (2017) "A general level design editor for co-creative level design". In: Thirteenth artificial intelligence and interactive digital entertainment conference

  39. Guzdial M et al (2019) "Friend, collaborator, student, manager: How design of an ai-driven game level editor affects creators. In: Proceedings of the 2019 CHI conference on human factors in computing systems, pp 1–13

  40. Bhaumik D, Khalifa A, Togelius J (2021) "Lode Encoder: AI-constrained co-creativity," In: 2021 IEEE Conference on games (CoG), IEEE, pp 01–08

  41. Delarosa O, Dong H, Ruan M, Khalifa A, Togelius J (2021) Mixed-initiative level design with rl brush. International Conference on Computational Intelligence in Music, Sound, Art and Design (Part of EvoStar). Springer, pp 412–426

    Google Scholar 

  42. Hoyt A, Guzdial M, Kumar Y, Smith G, Riedl MO (2019) "Integrating automated play in level co-creation". arXiv preprint arXiv:1911.09219

  43. Alvarez A, Font J, Togelius J (2022) Toward designer modeling through design style clustering. IEEE Trans Games 14(4):676–686

    Article  Google Scholar 

  44. Charity M, Khalifa A, Togelius J (2020) Baba is y’all: collaborative mixed-initiative level design. In: 2020 IEEE Conference on Games (CoG), IEEE pp 542–549

  45. Charity M, Dave I, Khalifa A, Togelius J (2022) "Baba is Y'all 2.0: design and investigation of a collaborative mixed-initiative system. arXiv preprint arXiv:2203.02035

  46. Dangeti P (2017) Statistics for machine learning. Packt Publishing Ltd

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mohammad Reza Hojatoleslami.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Hojatoleslami, M.R., Zamanifar, K. & Zojaji, Z. GFGDA: general framework for generating dungeons with atmosphere. Multimed Tools Appl (2024). https://doi.org/10.1007/s11042-024-18833-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11042-024-18833-5

Keywords

Navigation