Game API and 3D Graphics
The MIDP 2 game library is probably the best set of features for game developers. It has two major areasthe GameCanvas,which improves the basic structure of a game application, and layers, which provide a standard mechanism for managing and drawing multiple graphics layers, including sprites.
To use the new Game API classes you need to import javax.microedition.lcdui.game.*.You’ll tackle the GameCanvas first because it affects the fundamental structure of a gaming MIDlet.