Author:Tony.Ming [email protected]
Copyrights all reserve 2004.
Any suggestion or question will be Thankful! 任何建议和问题都见非常感谢!
同时欢迎您一同参加这个项目,任何参与此项目的人都将或者最终源代码。
版本历史Version Hitory ----------------------- V0.1 2004.10.26 created the base idea.
概述OverView: ----------------------- 用过MIDP2.0开发的朋友一定感觉MIDP2.0中的game类一定很好用吧。但MIDP1.0中没有这个类,这样我们用MIDP1.0开发游戏时很多时候做了很多重复的工作,根据代码复用的原则,我们很容易想到把这些常用功能,模块话,架构化起来。MIDP2.0虽然没有给出game类的源代码,但他提供了一个较好架构给我们,我们可以在这个架构的基础上实现自己的MIDP1.0.game类。
分析Analyse: ----------------------- “知己知彼方能百战不怠”,那我们就先来看一下MIDP2.0中的game类结构 Package javax.microedition.lcdui.game The Game API package provides a series of classes that enable the development of rich gaming content for wireless devices. game类提供了一组类,使我们能够为移动设备开发丰富多彩的游戏内容。
Class Summary >GameCanvas The GameCanvas class provides the basis for a game user interface. GameCanvase类提供一个基本的游戏用户界面。 >Layer A Layer is an abstract class representing a visual element of a game. Layer是一个抽象类,它用于描述一个基本的游戏可视单位。 >LayerManager The LayerManager manages a series of Layers. LayerManager顾名思义是用来管理一组类的。 >Sprite A Sprite is a basic visual element that can be rendered with one of several frames stored in an Image;different frames can be shown to animate the Sprite. Sprite类是一个基本的可视单位(精灵),它可以在用存在一幅图像中的各个帧来实现动画渲染。 >TiledLayer A TiledLayer is a visual element composed of a grid of cells that can be filled with a set of tile images. TiledLayer是一个由一组tile图片填充在内建的一个网格内形成的可视单位。

|