在MIDP1.0上实现MIDP2.0中的game类

Author:Tony.Ming
yesming@126.com

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图片填充在内建的一个网格内形成的可视单位。

 

 

 

 

 


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值