Abstract
As part of a student’s project, computer science student David Priemer and former graphics design student Daniel Goffin started to develop a nice puzzle based computer game called Perlinoid. In his Bachelor thesis, David developed a level generator for Perlinoid. The challenge was to generate interesting puzzles with a reasonably small number of elements and reasonably complex series of steps required for the solution. Being educated in graph transformations, David modeled the possible puzzles as graphs and possible user steps as graph transformations. First a random level is generated, for which the level generator computes a reachabilty graph by applying all graph transformations in all possible combinations on all possible matches. Next, the reachability graph is analyzed for distances between start graph and end graph, number of possible choices, number of different solution paths, etc. and a number of metrics are applied. Finally, the result gets evaluated. In case the level is considered insufficient, it will be discarded and the process starts from the beginning. This is done within the Perlinoid application on demand at user side. To minimize the footprint of the level generator, a new dedicated graph transformation engine has been built and incorporated into the Perlinoid game. This paper reports about the concepts and experiences with this approach.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Fischer, T., Niere, J., Torunski, L., Zündorf, A.: Story diagrams: a new graph rewrite language based on the unified modeling language and java. In: Ehrig, H., Engels, G., Kreowski, H.-J., Rozenberg, G. (eds.) TAGT 1998. LNCS, vol. 1764, pp. 296–309. Springer, Heidelberg (2000)
Geiß, R., Kroll, M.: GrGen.NET: a fast, expressive, and general purpose graph rewrite tool. In: Schürr, A., Nagl, M., Zündorf, A. (eds.) Applications of Graph Transformations with Industrial Relevance. LNCS, vol. 5088, pp. 568–569. Springer, Heidelberg (2008)
Graph Engineering Course at Kassel University
GraphSynth. Open-source research software for creating generative grammars (2006). http://designengrlab.github.io/GraphSynth/. 17 Feb 2016
Rensink, A.: The GROOVE Simulator: A Tool for State Space Generation. In: Pfaltz, J.L., Nagl, M., Böhlen, B. (eds.) Applications of Graph Transformations with Industrial Relevance. LNCS, vol. 3062, pp. 479–485. Springer, Heidelberg (2003)
SDMLib.org. Story Driven Modeling Library at GitHub (2014). https://github.com/fujaba/SDMLib, 17 Feb 2016
Acknowledgments
Perlinoid is (c) 2016 by David Priemer and Daniel Goffin. All ingame assets were created by Daniel Goffin.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2016 Springer International Publishing Switzerland
About this paper
Cite this paper
Priemer, D., George, T., Hahn, M., Raesch, L., Zündorf, A. (2016). Using Graph Transformation for Puzzle Game Level Generation and Validation. In: Echahed, R., Minas, M. (eds) Graph Transformation. ICGT 2016. Lecture Notes in Computer Science(), vol 9761. Springer, Cham. https://doi.org/10.1007/978-3-319-40530-8_14
Download citation
DOI: https://doi.org/10.1007/978-3-319-40530-8_14
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-40529-2
Online ISBN: 978-3-319-40530-8
eBook Packages: Computer ScienceComputer Science (R0)