Maze Adventure: An Application of Maze Algorithm in Role-playing Game Development by Python

Rui Yang, Conger He
{"title":"Maze Adventure: An Application of Maze Algorithm in Role-playing Game Development by Python","authors":"Rui Yang, Conger He","doi":"10.4108/eai.17-6-2022.2322876","DOIUrl":null,"url":null,"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.","PeriodicalId":156653,"journal":{"name":"Proceedings of the International Conference on Information Economy, Data Modeling and Cloud Computing, ICIDC 2022, 17-19 June 2022, Qingdao, China","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the International Conference on Information Economy, Data Modeling and Cloud Computing, ICIDC 2022, 17-19 June 2022, Qingdao, China","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4108/eai.17-6-2022.2322876","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

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.
迷宫冒险:迷宫算法在Python角色扮演游戏开发中的应用
本文讨论了用Python编写的2D角色扮演游戏《Maze Adventure》的开发和算法。该游戏是基于Aldous Broder迷宫生成算法开发的,该算法是一种随机行走算法,是一种产生均匀生成树的方法。通过这些均匀生成树绘制出的迷宫,本文引入了各部分具有不同功能的代码,这些代码共同构成了一个完整的游戏。总结了迷宫算法的基本算法,以及如何将其与游戏结构相结合。它包括生成和修改不同类型的精灵,一个隐藏大多数迷宫供玩家探索的Misty算法,以及将碰撞检测与迷宫联系起来的各种方法,以便玩家与怪物战斗或拾取宝藏。这是一个关于如何将传统的迷宫算法与游戏等新媒体相结合的探索,通过完成《maze Adventure》,它显著地证明了Python语言具有很强的流动性,能够使用最新的媒体之一:游戏。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信