目 录

摘  要

ABSTRACT

1  绪论

1.1 手机软件现状

1.2 J2ME介绍

1.3 手机游戏应具有的特征

1.4 本章小结

2  开发环境及相关技术的介绍

2.1  开发环境

2.2  Java语言特点

2.3  关于ECLIPSE

2.4 关于Wireless Tool Kit

2.5 Java Appication Manager

2.6 本章小结:

3  程序结构、思想和相关技术

3.1 本程序需要解决的主要技术问题

3.2  程序流程

3.3 Canvas类

3.4 Graphics类

3.5 MIDP1.0技术下的绘制背景技术

3.6 MIDP2.0新增的GameCanvas包

3.7 PNG图片格式

3.8 内存的优化

3.9 内存检测器

3.10 关于混淆器

3.11 本章小结

4  程序分析和具体实现

4.1 贪吃蛇游戏的规则简介以及开发环境

4.1.1 贪吃蛇游戏的规则简介

4.1.2 开发环境

4.2 详细设计

4.2.1 操作流程

4.2.2 代码设计

4.3本章小结

5  测试

5.1 游戏的调试

5.2 游戏的运行环境

6  总结

6.1 本程序的总结和展望

6.2 感想

致 谢

参考文献

摘 要

J2ME(Java 2 Micro Edition) 是近年来随着各种不同设备,尤其是移动通信设备的飞速发展而诞生的一项新的开发技术。它定位在消费性电子产品的应用上,对设备的智能化、多样化,提供了革命性的解决方案,并因其“Write Once, run anywhere”的Java特性而提高开发的效率。

随着手机的日益普及、Java功能在移动设备上的实现,Java应用程序产生的手机增值服务逐渐体现出其影响力,对丰富人们的生活内容、提供快捷的资讯起着不可忽视的作用。本论文着眼于J2ME技术的应用,开发一款可商用的手机游戏程序。本程序将老少皆宜的经典作品移植到手机上来,为更流行的硬件平台提供应用软件。

本论文介绍了J2ME的相关技术及本程序的结构分析和具体功能的实现。

 

关键字:J2ME;手机游戏;Java

 

ABSTRACT

J2ME is a kind of fast developing technology implemented on various devices especially mobile communication equipments. It focuses on application for consumptive electronic products, providing revolutionary solution to the intelligentizetion and diversification of the equipment. It improve the efficiency of the development process thanks to its “Write Once, run anywhere” nature.

When cell phone is getting ever more popular nowadays, with the implementation of Java technology on mobile equipment, increment of capital on communication service exhibits its force on people’s everyday life, providing them ever fast information just in hand. This dissertation focuses on implementation of J2ME technology and has developed a commercial game suite run on mobile phones. This application  transports the classical product to mobile phones, offering corresponding software for such more popular hardware platform.

This dissertation introduces  J2ME and its relative technology as well as this program’s structure and analysis of implementation in details.

 

Key words:J2ME; mobile game; Java