1、 毕业设计说明书 吃豆豆手机游戏的设计与开发 学生姓名: 学号: 学 院: 专 业: 指导教师: 2010 年 6 月 通信技术 吃豆豆手机游戏的设计与开发吃豆豆手机游戏的设计与开发 摘 要 随着移动电话的普及率越来越高,手机已经成为人们生活中的必需品。 同时,随着科技的发展,移动电话的功能也越来越强,手机娱乐已经成为一 项充满发展前景和商机的产业。虽然目前手机的处理能力与个人计算机的标 准处理能力相比很有限,但是足够运行一个相对小型的游戏。 本文先从Java手机游戏的背景出发, 介绍了Java手机游戏的发展现状, 然后从整体上介绍本吃豆人游戏开发的模型、结构分析和具体功能实现,游 戏的接口和
2、运作方式。通过对手机游戏开发,MIDP 2.0,以及 JSR-184 的研 究,采用立即模式,运用深度优先遍历算法来随机生成游戏地图,并尽力模 拟手机游戏的普遍性形式,实现一个操作简单,并有一定可玩性的完整 3D 手机迷宫游戏。 关键词:J2ME;MIDP 2.0;Pac-Man;立即模式(immediate mode);深度 优先遍历。 Eat doug cellular phone game design and development. Abstract With mobile phone penetration rate increasing, mobile phones have b
3、ecome a necessity in peoples lives. At the same time, with the development of technology, the functions of mobile phones more and more strong, mobile entertainment has become a full development prospects and business opportunities in the industry. Although at present the handling capacity of mobile
4、phones and personal computer processing power than the standard is very limited, but enough of a relatively small operation of the game. This article start with the background of Java mobile phone games based on the Java development of mobile phone games, and then a whole game on the Pac-Man model o
5、f development, structural analysis and specific functions to achieve, the games interface and mode of operation. Through the development of mobile games, MIDP 2.0, and JSR-184 research, using the depth-first traversal algorithms to generate random map games, and to try to simulate the universal form
6、 of mobile games, to realize a simple operation, and funny Pac-Man maze game on mobile phone. KEY WORDS:J2ME; MIDP 2.0; Pac-Man; Immediate mode; The depth-first traversal algorithms 目 录 1 绪论 . 6 1.1 研究背景 6 1.2 研究内容 6 2 手机游戏简介 . 7 2.1 手机游戏的发展 7 2.2 手机游戏的特点 7 2.2.1 手机设备的优点 7 2.2.2 手机设备的缺点 8 2.3 手机游戏的开发 9 2.3.1 与传统游戏开发的区别 9 2.3.2 扬长避短的开发策略 10 3 Java 和 J2ME 概述 . 13 3.1 Java 概述 13 3.1.1 Java 的历史 13 3.1.2 Java 语言特点 14 3.2 J2ME 及其体系结构概述 14 3