1、 基于 J2ME 的 Java 游戏开发 I 摘摘 要要 Java 良好的跨平台特性在移动平台的开发中显示出了巨大的威力。Java 语 言面向对象的优势也使得开发游戏变得非常容易。 随着手机的日益普及、Java 功能在移动设备上的实现,Java 应用程序产生的 手机增值服务逐渐体现出其影响力,对丰富人们的生活内容、提供快捷的资讯起 着不可忽视的作用。本论文着眼于 J2ME 技术的应用,开发一款可商用的手机游 戏程序坦克大战。本程序的界面和运作方式继承于日本任天堂公司在 20 世 纪 80 年代开发的 Battle City游戏,将老少皆宜的经典作品移植到手机上来,为 更流行的硬件平台提供应用软
2、件。 本论文介绍了任天堂红白机的软硬件特性、J2ME 的相关技术及本程序的结 构分析和具体功能的实现。 关键字关键字:J2ME,手机游戏,Java,坦克大战 ABSTRACT Java has an advantage of running in different platforms that shows its power in developing for the mobile device. The advantage of object-oriented of Java makes development of games easily. When cell phone is get
3、ting ever more popular nowadays, with the implementation of Java technology on mobile equipment, increment of capital on communication service exhibits its force on peoples everyday life, providing them ever fast information just in hand. This dissertation focuses on implementation of J2ME technolog
4、y and has developed a commercial game suite run on mobile phonesTank. This application inherits many characters of the old fashioned game Battle City which developed by Nintendo in 1980s. It transports the classical product to mobile phones, offering corresponding software for such more popular hardware platform. This dissertation introduces the characteristic of Nintendo FC machine and its software, J2ME and its relative technology as well as this programs structure and an