Loading a SpriteSheet
Chances are that by this point, you have the shell or beginnings of a game on the Android platform. It is also possible that you have tried to animate one or all of your characters, weapons, or other on-screen object without luck.
If you have tried to load separate images, you no doubt found the process of flipping those images to create animation painfully slow. The solution to this problem is almost as old as video games themselves:sprite sheets. Most 2D-based video games still employ an animation technique that is well-tested, and well-suited for the task; that is, creating a sprite sheet of the animation frames needed in your game.
In this chapter, you will walk through some solutions to common problems ...