Research Article
Maze and navigation algorithms in game development
Abstract
This paper introduces a small game that the authors plan on creating and discusses the code and algorithms implemented inside. The game is created using Pygame. Pygame is a set of python modules designed for writing 2D-games. The reason we use it is that Pygame is free and simple to operate for a new game designer. The game involves moving a character through a maze while eating coins along the path. The character is controlled using keyboard. The maze is randomly generated using various maze algorithms. Although the game is simple, the logics and algorithms included are useful for more complex games. This essay will introduce the maze algorithms and navigation algorithms needed for the game, as well as the code implemented.
Keywords: Game Development; Navigation Algorithms; Pygame; Maze
References
- Gabrovšek, Peter. "Analysis of maze generating algorithms." IPSI Transactions on Internet Research 15.1 (2019): 23-30.
- Lawler, Gregory F. "Loop-erased random walk." Perplexing Problems in Probability: Festschrift in Honor of Harry Kesten(1999): 197-217.
- Niemczyk, R., and Stanisław Zawiślak. "Review of Maze Solving Algorithms for 2D Maze and Their Visualisation." International Conference of Students, PhD Students and Young Scientists" Engineer of the XXI Century". Cham: Springer International Publishing, 2018.
- DEV1 documentation. (2021). Pygame.sprite - pygame v2.0.1. https://www.pygame.org/docs/ref/sprite.html#pygame.sprite.Sprite.groups.
- Lankoski P. “Player character engagement in computer games[J].” Games and Culture, 2011, 6(4): 291-311.
- Javaid, Adeel. "Understanding Dijkstra's algorithm." Available at SSRN 2340905 (2013).
- Widodo, Aris Puji (2007). “Simulasi Lintasan Terpendek Algoritma Dijkstea Berbasis Extensible Markup Language(XML)” http://eprints.undip.ac.id/1836/
- Ryuhei Uehara & Yuchi Uno. “Efficient Algorithms for the Longest Path Problem.” In:fleischer, R., Trippen, G.(eds) Algorithms and Computation. ISAAC 2004. “Lecture Notes in Computer Science.”, vol 3341. Springer, Berlin, Heidelberg. https://doinorg/10.1007.978-3-540-30551-4_74
- Teschner M, Heidelberger B, Müller M, et al. “Optimized spatial hashing for collision detection of deformable objects”[C]//Vmv. 2003, 3: 47-54.
- van der Spuy R, van der Spuy R. “Making Sprites and a Scene Graph[J].” Advanced Game Design with HTML5 and JavaScript, 2015: 111-163.