The GameCanvas class is provided in the javax.microedition.lcdui.game package. It extends the Canvas class. It not only inherits the features from the Canvas class but also provides game-specific capabilities such as an off-screen graphics buffer and the ability to query key status. Some of the methods of this class are as follows:
- flushGraphics()
- getGraphics()
- getKeyStates()
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
