文档介绍:目录
绪论 1
1 课题总体介绍 1
1
1
2
3
3
2 J2ME开发环境配置 4
JAVA基本开发环境介绍 4
JRE、JDK的安装 4
J2ME开发平台的搭建(Eclipse+Java ME SDK ) 5
3 J2ME程序开发基本框架 7
4 坦克游戏的实现 8
主要功能需求 8
主要对象实例分析 8
程序主要流程 8
程序主要结构 9
主要实现方法及代码 9
5 总结 21
基于J2ME平台坦克游戏的实现
摘要
随着科技的不断进步,无线通讯事业的迅猛发展,作为人们主要通讯工具的手机在数量上正在与日俱增,并且扩展功能亦日趋强大,同时人们对手机扩展功能的要求也不断增加。因此,在这一大环境下催生了移动设备嵌入式开发的兴起和快速发展。J2ME(Java 2 Micro Edition)正是SUN公司最新推出的面向嵌入式产品的JAVA技术。J2ME技术是开放的,它面向对象,功能强大,开发效率高,资源占用低,成为游戏应用开发的利器,被开发者所广泛使用。目前J2ME以其全面的功能,庞大的设备支持数量,广泛的应用成为嵌入式/移动应用平台的领先者。
【关键词】嵌入式开发手机游戏
Tank Game Based on the J2ME Platform
Abstract
With technological advances,the munications industry developes rapidly, as a munications tool for people's mobile phones are growing in number, and extensions are ing more powerful, while expanding people's functional requirements for mobile phones also on the rise. Therefore, in this great environment, gave birth to the rise of mobile devices, embedded development and rapid development. J2ME (Java 2 Micro Edition) is SUN's latest JAVA technology for embedded products. J2ME technology is open, it is object-oriented, powerful,high developing efficiency, low resource consumption, ing an important weapon for mobile game application development widely used by developers. J2ME is currently ing the embedded / mobile application platform king for prehensive functionality, and the large number of device support for wide range of applications .
【Key words】Embedded Development Mobilephone Game
绪论
J2ME(Java 2 Micro Edition)是Java 2的一个组成部分,它与J2SE、J2EE并称。根据Sun的定义:J2ME是一种高度优化的Java运行环境,主要针对消费类电子设备的,例如蜂窝电话和可视电话、数字机顶盒、汽车导航系统等等。J2ME技术在1999年的JavaOne Developer Conference大会上正式推出,它将Java语言的与平台无关的特性移植到小型电子设备上,允许移动无线设备之间共享应用程序。
J2ME在设计其规格的时候,遵循着「对于各种不同的装置而造出一个单一的开发系统是没有意义的事」这个基本原则。于是 J2ME 先将所有的嵌入式装置大体上区分为两种:一种是运算功能有限、电力供应也有限的嵌入式装置(比方说PDA、手机);另外一种则是运算能力相对较佳、并且在电力供应上相对比较充足的嵌入式装置(比方说冷气机、电冰箱、电视机上盒(set-top box))。因为这两种型态的嵌入式装置,所以Java 引入了一个叫做Configuratio