基于J2ME WTK的2D手机游戏开发
Develops based on the J2ME_WTK 2D handset game
Abstract
In recent years, along with the information technology rapid development, Mobile communication and the Internet fusion is day by day obvious, took the electronic commerce domain the strength for new life-Mobile Commerce, started to become the tradition electronic commerce the beneficial supplement, demonstrated the huge development potential and the growth space.The motion commerce by its nimble, simple, the convenient characteristic is receiving the more and more many person's attention, the people earnestly hope can enjoy the convenience which brings to the motion commerce. The domestic and foreign more and more many manufacturers in company's under and so on Sun Corporation, Motorola, Simens technical support start to develop based on the J2ME platform wireless application service.J2ME is SUN Corporation the development platform which in view of embedded, the expense class electronic products promotes, composes the Java technology together with J2SE and J2EE three important branches.J2ME in fact is a series of standard set, formulates related Java Specification Request(JSR) by the JCP organization and issued, each manufacturer can defer to the standard to carry on the realization on own product, but must have through the TCK test, to guarantee the compatibility like this.
The J2ME platform as a result of own characteristic, oneself after becomes the current field popular wireless application development prop platform.The function provides which using J2ME, electronic commerce, enterprise's commerce using and so on all may expand wireless to comes up, already became the hot spot based on the J2ME platform handset using the development. The present paper take based on the J2ME_WTK 2D handset game development as a clue, has conducted the correlation theories research, experimental and the game development.Is making this section 2D game, main adaptive J2ME environment; Has drawn four backgrounds using the LayerManager chart level management class method and enables the background to achieve the dynamic effect; And used Sprite demon management class the method to seal the lead and the map level collision.
Key word: Mobile equipment; J2ME; MIDP; Game 摘要
近年来,随着信息技术的飞速发展,移动通讯与互联网的融合日趋明显,作为电子商务领域的新生力量——移动商务,开始成为传统电子商务的有益补充,显示出巨大的发展潜力和成长空间。移动商务以其灵活、简单、方便的特点正受到越来越多人的关注,人们迫切希望能够享受到移动商务带来的便利。 国内外越来越多的厂商在Sun公司、摩托罗拉、西门子等公司的技术支持下开始开发基于J2ME平台的无线应用服务。J2ME 是SUN 公司针对嵌入式、消费类电子产品推出的开发平台,与J2SE 和J2EE 共同组成Java 技术的三个重要的分支。J2ME 实际上是一系列规范的集合,由JCP 组织制定相关的Java Specification Request(JSR)并发布,各个厂商会按照规范在自己的产品上进行实现,但是必须要通过TCK 测试,这样确保兼容性。
J2ME平台由于自身的特点,己经成为当前业界流行的无线应用开发支柱平台。利用J2ME提供的功能,电子商务、企业的商务应用等都可以扩展到无线上来,基于J2ME平台的手机应用开发已经成为热点。 本论文以基于J2ME_WTK的2D手机游戏开发为线索,进行了相关理论研究、实验和游戏的开发。在做这款2D游戏,主要适配了J2ME环境;利用LayerManager图层管理类中的方法画了四层背景并使背景达到动态的效果;并利用Sprite精灵管理类中的方法封装了主角与地图层的碰撞。
关键词:移动设备,J2ME,MIDP ,游戏
目 录
摘要 I
ABSTRACT II
第1章 引 言 1
1.1 国内外手机游戏的产业现状 1
1.2 手机游戏概述 1
1.3 课题指导思想 2
1.4 课题研究的主要内容 2
1.5 论文结构 3
第2章 J2ME技术 4
2.1 J2ME概述 4
2.2 J2ME体系结构 4
2.3 WTK简介 5
2.4 J2ME 的开发环境与搭建 6
第3章 手机游戏开发的相关知识及工具 9
3.1游戏基本框架GFW 9
3.2 游戏程序的基本结构 9
3.3 CLDC及MIDP类库 10
3.3.1 CLDC 的目标 10
3.3.2 CLDC 的整体需求 10
3.3.3 CLDC 的硬件需求 10
3.3.4 CLDC 的软件需求 11
3.3.5 CLDC 的功能范围 11
3.3.6 CLDC特征 11
3.4 MIDP 12
3.4.1 MIDP 应用程序 12
3.4.2 MIDP UI 组件 13
第4章 手机2D游戏设计与实现 15
4.1游戏简介 15
4.2游戏设计 15
4.2.1 游戏中主线程 16
4.2.2 背景的画法 16
4.2.3主角的画法 17
4.2.4地图的画法 19
4.2.5主角与地图碰撞检测 21
4.3 程序打包与运行 22
4.4 最后效果图 24
结 语 25
参考文献 26
致 谢 27
附 录 875
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>