北京邮电大学毕业设计毕业论文.pdf
北京邮电大学毕业设计
基于Java的迷宫游戏
摘要
迷宫游戏是我们最常见的游戏之一,该游戏出现在手机游戏、掌上游戏机和电脑游
戏当中,因此迷宫游戏也是一个十分经典的游戏。一般的迷宫游戏比较简单,游戏中随
机出现一些障碍,要求玩家能够找出一条从起点到终点的通路。它看似简单确变化无穷,
迷宫游戏上手及其简单,但要熟练的掌握其中的奥秘且快速找出一条通路,难度却不低。
作为家喻户晓老少皆宜的大众游戏,其普及程度可以说是史上任何一款游戏都无法比较
的。
本设计是一款基于Java的迷宫游戏。目前用于游戏开发的计算机语言多种多样,而
Java只是其中一种。然而,Java是现在全球最时髦的开发工具之一,它拥有一套庞大且
完整的类库,内置了其他怨言需要靠库甚至是操作系统才能支持的功能。所以,程序员
可以很容易的用Java编写并运行基于Java的游戏。
本文从游戏的背景研究和发展现状开始,详细描述了整个游戏的制作过程。对实现
功能以及操作过程进行了重点讨论,开发用到了Java类库中的许多包以及其中的类,
例如java.util包,java.lang包,java.awt包等等,稳重会对这些包和类的用法进行讲解。
关键词游戏;迷宫;Java;算法
i
北京邮电大学毕业设计
Absract
Java-BasedMazeGame
MazeGameisoneofthemostcommonofourgame,thegameaearedinmobile
games,handheldgameconsolesandcomputergameswhich,thereforemazegameisavery
classicgame.Generallyrelativelysimplemazegame,thegamerandomlysomeobstacles,
requiringplayerstobeabletofindapathfromstarttofinish.Itseemssimpleindeed
enormous,anditssimplemazegamestarted,butaskilledmastermysterycutquickly
identifyapath,thedifficultyreallyisnotlow.Asawell-knownpopulargameforallages,
itspopularitycanbesaidthatthehistoryofanygamecannotbecompared.
ThisdesignisaJava-basedmazegame.Currentcomputerlanguageforavarietyofgame
development,andJavaisjustoneofthem.However,Javaisnowoneoftheworldsmost
fashionabledevelopmenttools,ithasalargeandcompletelibrary,built-inlibraryorother
complaintsneedtorelyontheoperatingsystemtosuortfunctions.Therefore,the
programmercaneasilywri