摘 要
随着通信技术的发展和手机的普及,手机游戏的开发技术越来越为人们所关注。以J2ME为开发平台,利用Java提供强大工具,不但可以在手机上实现静态HTML技术所无法实现的计算处理、数据存储、与服务器的通信等功能,而且能够开发各种手机游戏。本文在介绍J2ME及其体系结构的基础上,以俄罗斯方块游戏为实例,描述了借助J2ME的MIDlet类库开发手机游戏的过程。
关键词:手机游戏;MIDP应用程序;永久性数据
Along with communication development and handset popularization, people more and more pay attention to the handset game development technology. Develops the platform take J2ME, provides the powerful tool using Java, not only may realize the handset functions that static HTML technology be unable to realize, such as computation processing, data storage, and communication with server, but also can develop all kinds of handset games. On the basis of the technology and architecture of J2ME being introduced, the Russian game was taken as a example, the development process of handset game with the aid of the J2ME MIDlet class library is described in this article.
Key Words: Handset game; MIDP application pragram; Permanent data
目 录
ABSTRACT 2
前 言 4
1 工程概况 6
1.1 项目名称 6
1.2 设计平台 6
1.3程序设计思想 8
1.4主要实现的功能 9
2 开发背景 10
3 游戏实现 17
3.1游戏设计的具体实现 17
3.1.1游戏界面的设计实现 17
3.1.2俄罗斯方块的造型 17
3.1.3俄罗斯方块的旋转 18
3.1.4如何实现方块的运动和自动消除满行的方块 18
3.1.5游戏速度和游戏级别自由选择 19
3.1.6游戏得分的计算和游戏菜单的编辑 20
3.2 游戏功能的介绍 20
总 结 23
致 谢 24
参考文献 25