Research Article
Maze Adventure: An Application of Maze Algorithm in Role-playing Game Development by Python
@INPROCEEDINGS{10.4108/eai.17-6-2022.2322876, author={Rui yang and Conger He}, title={Maze Adventure: An Application of Maze Algorithm in Role-playing Game Development by Python }, proceedings={Proceedings of the International Conference on Information Economy, Data Modeling and Cloud Computing, ICIDC 2022, 17-19 June 2022, Qingdao, China}, publisher={EAI}, proceedings_a={ICIDC}, year={2022}, month={10}, keywords={python aldous broder algorithm spirit collision}, doi={10.4108/eai.17-6-2022.2322876} }
- Rui yang
Conger He
Year: 2022
Maze Adventure: An Application of Maze Algorithm in Role-playing Game Development by Python
ICIDC
EAI
DOI: 10.4108/eai.17-6-2022.2322876
Abstract
This paper talks about the development and algorithms of a 2D role-playing game coded in Python: Maze Adventure. The game is developed based on the Aldous Broder maze generation algorithm, a random walk algorithm, which is a way to produce uniform spanning trees. With the maze that is drawn by these uniform spanning trees, this paper introduces each part of code that has different functions, which works together to form a complete game. It summarizes the basic algorithms for not only the maze algorithm, but how to apply and link the function with the game's structure. It includes the generation and modification of different types of sprites, a Misty algorithm that hides most of the mazes for players to explore, and various ways of connecting collision detection along with the maze, in order to let players fight monsters or pick up treasures. It’s an exploration of how to combine a traditional maze algorithm with new media like games, and by finishing Maze Adventure, it remarkably proved that Python language has strong fluidity, which is capable of using one of the newest media: Games.