Chapter 6
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 ...
Get Android Game Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.