8 Gaming API and Sound
Functional Description
The Gaming API provides gaming related functionality to J2ME MIDlet writers. This functionality includes the ability and support for transparent images, the ability to play simple sounds and sound effects during a game, the ability to detect simultaneous key presses, support for sprites, and support for dynamically changing the palette color associated with an image.
Class Hierarchy
The following diagram shows the Gaming API hierarchy.
javax.microedition.lcdui |
Graphics |
(from javax.microedition.lcdui) |
Canvas |
(from javax.microedition.lcdui) |
Image |
(from javax.microedition.lcdui) |
com.motorola.game |
|
GameScreen | SoundEffect |
ImageUtil | BackGroundMusic |
PaletteImage | FileFormatNotSupported |
| Exception |
PlayField |
|
Sprite |
|