Back | Tutorial Home | Next
The popularity of J2ME and game development has sprouted several carrier and manufacturer specific custom classes that support game development. Of course, the main problem with this is portability, for example using Siemens Sprite class would make it difficult for you to port your game to a Nokia handset, the most portable solution is create your own sprite class.
But with the release of MIDP 2.0 some of those problems in game portability was taken away with the introduction of five new classes:
Though you probably won’t use the Layer class directly, it is actually an abstract class used by Sprite, LayerManager and TiledLayer. These classes can be found in the following package java.microedition.lcdui.game. Not only is portability less of problem but also with these new game classes your code may potentially become a lot smaller now that you do not have to implement custom classes such as Sprite. These classes are now apart of the underlying Java environment on the mobile handset.
Back | Tutorial Home | Next
site comments powered by DisqusThis page is a part of
a frames based web site. If you have landed on this page from a search engine
click here to view the complete page.