基于 Android 的迷宫小游戏的设计与实现 Design and Implementation of Android-based Labyrinth Mini-Game内容摘要项目主要实现了迷宫游戏的基本功能,存档功能,得分记录功能,还增加了多层模式,增加了重力感应操纵方式
项目基于 Android系统实现,主要需需要学习 Android 的布局知识、控件使用、事件监听、系统权限申请等相关知识
需要有 Java 语言基础,本项目中主要使用 Android 官方推荐的语言 Kotlin 语言实现
项目采用了 mvp 模式优化系统的架构,使项目代码变得更为整洁
项目中实现了迷宫自动生成,生成的迷宫为单路迷宫,该类型迷宫的特性是有且只有一条路径可以到达终点,只要依照一定技巧就可以到达终点,不会出现转圈的情况,其实现算法相对简单,我采用迭代算法的思想实现迷宫的自动生成
项目中实现了路径自动计算功能,主要采用递归思想实现该算法
关键词: 迷宫游戏MVP 模式递归算法 迭代算法AbstractThe project mainly realizes the basic functions of the maze game, the save function, the score recording function, and also adds a multi-layer mode, and adds a gravity sensing manipulation method
The project is implemented based on the Android system, which mainly needs to learn the related knowledge of Android layout knowledge, control use, event