Summary
In this tutorial, you learned how to create both nonanimated and animated sprites. You also saw the inherent benefits of working with sprites including:
- Translation (rotate and mirror)
- Setting a reference pixel for more accurate placement
- Detecting collisions
If you are interested in the development of mobile games, you'll need a solid understanding of sprites to succeed. This tutorial features two example MIDlets that should provide a foundation for experimenting and learning more about how to work with the Sprite class as you begin developing mobile gaming applications. Even if you are not a gamer, sprites can still prove a useful tool for working with images. For example, in a business application the ability to rotate and translate images for a charting or reporting application could prove to be quite useful. No doubt, the Sprite class is a welcome addition to the MIDP programming toolset.

