基于J2ME的手机游戏开发
——五子棋游戏开发
摘 要
J2ME(Java 2 Micro Edition) 是近年来随着各种不同设备,尤其是移动通信设备的飞速发展而诞生的一项新的开发技术。它定位在消费性电子产品的应用上,对设备的智能化、多样化,提供了革命性的解决方案,并因其“Write Once, run anywhere”的Java特性而提高开发的效率。
随着手机的日益普及、Java功能在移动设备上的实现,Java应用程序产生的手机增值服务逐渐体现出其影响力,对丰富人们的生活内容、提供快捷的资讯起着不可忽视的作用。特别是手机性能的逐渐增强,手机作为一个游戏平台越来越成熟了。本论文着眼于J2ME技术的应用,开发一款可用的手机游戏程序——五子棋。
本论文介绍了J2ME的相关技术及本程序的结构分析和具体功能的实现。
关键词:J2ME;手机游戏;五子棋
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 intelligentization and diversification of the equipment. It improve the efficiency of the development process thanks to its “Write Once, run anywhere” nature.
When mobile 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. Mobile phone whose capability is greater is more and more mature for game. This dissertation focuses on implementation of J2ME technology and has developed a commercial game suite run on mobile phones—Gobang.
This dissertation introduces J2ME and its relative technology as well as this program’s structure and analysis of implementation in details.
Keywords: J2ME; mobile game; Gobang
目 录
1 背景 (1)
1.1 手机业发展情况 (1)
1.2 Java手机的优点 (1)
1.3 手机游戏技术 (2)
2 J2ME综述 (3)
2.1 J2ME简介 (3)
2.2 J2ME的相关特性 (3)
2.2.1 Configuration简介 (3)
2.2.2 Profile简介 (4)
3 程序结构思想和相关技术 (4)
3.1 程序需解决的有关技术问题 (4)
3.2 程序流程 (5)
4 程序分析和具体实现 (6)
4.1 进入游戏前的选择画面 (6)
4.2 游戏的核心类及其逻辑的实现 (8)
5.程序测试 (11)
6 总结 (11)
致 谢 (13)
参考文献 (13)
附录 (14)

您当前的位置:
