1、 java 编写的坦克大战的游戏编写的坦克大战的游戏设计设计 摘要:J2ME(Java 2 Micro Edition) 是近年来随着各种不同设备, 尤其是移动通信设 备的飞速发展而诞生的一项新的开发技术。它定位在消费性电子产品的应用上, 对设备的智能化、多样化,提供了革命性的解决方案,并因其“Write Once, run anywhere”的 Java 特性而提高开发的效率。 随着手机的日益普及、Java 功能在移动设备上的实现,Java 应用程序产生的 手机增值服务逐渐体现出其影响力,对丰富人们的生活内容、提供快捷的资讯起 着不可忽视的作用。本论文着眼于 J2ME 技术的应用,开发一款可
2、商用的手机游 戏程序坦克大战。本程序的界面和运作方式继承于日本任天堂公司在 20 世 纪 80 年代开发的 Battle City 游戏,将老少皆宜的经典作品移植到手机上来,为 更流行的硬件平台提供应用软件。 本论文介绍了任天堂红白机的软硬件特性、J2ME 的相关技术及本程序的结 构分析和具体功能的实现。 关键字:J2ME,手机游戏, Java,坦克大战 ABSTRACT:J2ME is a kind of fast developing technology implemented on various devices especially mobile communication equi
3、pments. It focuses on application for consumptive electronic products, providing revolutionary solution to the intelligentization 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 eve
4、r 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 technology and ha
5、s 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 pla
6、tform. This dissertation introduces the characteristic of Nintendo FC machine and its software, J2ME and its relative technology as well as this programs structure and analysis of implementation in details. Key words: J2ME, mobile game, Java, tank, Battle City. 引言 Java 语言是美国 Sun Microsystem 的 James Gosling、Pratrick Naughton 及 Mike Sheridan 等人于 1991 年精心设计出来的计算机编程语言,其构想在于实现使用 同一种编程语言所写出来的程序可以在不同的平台上运作。 这种架构对于消费性 电子产品而言是具有革命性的, 因为在消费性电子产品中的处理器及操作系统各 不相同,要在这些平台上开发程序必须要了解各个平台的特性,以及其提供的 API