O'Reilly logo

Android Game Recipes: A Problem-Solution Approach by J. F. DiMarzio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required