目 录
摘 要...................................................................................................................................................................2
Sokoban based on Java......................................................................................................................................3
Abstract..............................................................................................................................................................3
引 言...................................................................................................................................................................1
1 系统分析.........................................................................................................................................................2
1.1 技术可行性分析..................................................................................................................................2
1.1.1 可行性目的..............................................................................................................................2
1.1.2 可行性研究前提......................................................................................................................2
1.1.3 算法可行性分析......................................................................................................................2
1.1.4 平台选择...................................................................................................................................7
1.2 需求分析..............................................................................................................................................8
1.2.1 引言...........................................................................................................................................8
1.2.2 游戏需求................................................................................................................................12
1.2.3 软硬件需求............................................................................................................................14
1.2.4 接口控制.................................................................................................................................14
1.3 方案论证............................................................................................................................................15
1.3.1 C++语言的优点.....................................................................................................................16
1.3.2 Java 语言的优点....................................................................................................................17
1.3.3 C 语言的优点.........................................................................................................................20
1.3.4 方案选择.................................................................................................................................23
2.1 游戏设计分析....................................................................................................................................26
2.1.1 地图文件的引用....................................................................................................................30
2.1.2 程序运行逻辑........................................................................................................................31
2.1.3 绘图.........................................................................................................................................32
2.1.4 显示平台.................................................................................................................................34
2.2 注意事项............................................................................................................................................37
2.3 游戏流程图........................................................................................................................................37
2.4 函数模型............................................................................................................................................39
3 详细设计.......................................................................................................................................................44
3.1 游戏总体结构与代码.......................................................................................................................44
3.2 选关模块............................................................................................................................................46
3.3 地图的绘制形成................................................................................................................................47
3.4 小人与箱子移动的算法...................................................................................................................50
3.5 小人上下移动模块...........................................................................................................................52
3.6 悔棋模块............................................................................................................................................53
3.7 音乐控制............................................................................................................................................55
4 游戏测试.......................................................................................................................................................57
4.1 软件测试............................................................................................................................................57
4.1.1 软件测试简介........................................................................................................................57
4.2 测试方法....................................................................................................................................58
4.3 测试步骤....................................................................................................................................58
4.4 游戏系统性能分析...........................................................................................................................62
5 项目经验与总结...........................................................................................................................................63
6 参考文献.......................................................................................................................................................65
7 致谢...............................................................................................................................................................67
8 外文原文及中文翻译...................................................................................................................................68