Javax.microedition.lcdui.game
Classes GameCanvas Layer LayerManager Sprite TiledLayer API OverviewThe API is comprised of five classes: GameCanvasThis class is a subclass of LCDUI's Canvas and provides the basic 'screen' functionality for a game In addition to the methods inherited from Canvas, this class also provides game-. centric features such the ability to query the current state of the game keys and synchronous graphics flushing;. these features simplify game development and improve performance LayerThe Layer class represents a visual element in a game such as a Sprite or a TiledLayer This abstract class forms. the basis for the Layer framework and provides basic attributes such as location, size, and visibility. LayerManagerFor games that employ several Layers, the LayerManager simplifies game development by automating the rendering process. It allows the developer set a view window that represents the user's view Of the game. The LayerManager Automatically Renders The Game's Layers To Implement The D esired view. SpriteA Sprite is basic animated Layer that can display one of several graphical frames. The frames are all of equal size and are provided by a single Image object. In addition to animating the frames sequentially, a custom sequence can also be set to Animation The Frames in an Arbitrary Manner. The Sprite Class Also Provides Various Transformations (Flip and Rotation) And Collision Detection Methods That Simplify The IMPLEMENTA OF A GAME '