Java Reference
In-Depth Information
Figure 8-1. The classes in the Mobile Game API included in Java MIDP 2.0 and beyond
Five classes make up the Mobile Game API:
GameCanvas : A subclass of Canvas used for accepting keystroke events and visually
containing your game
LayerManager : A class responsible for presenting visible layers on the screen and
maintaining their Z-order
Layer : An abstract class describing how a layer to be displayed on the screen should
behave
TiledLayer : An implementation of Layer suited for displaying large bitmaps made
up of regular repeating regions called tiles
Sprite : An implementation of Layer suited for animation of a set of bitmaps
according to an object's state
The javax.microedition.lcdui.game package contains all of these classes.
 
Search WWH ::




Custom Search