O'Reilly logo

iOS Game Programming Cookbook by Bhanu Birani, Chhavi Vaishnav

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

Adding animations using a texture atlas

We have already learned about animations even before learning how to use textures for loading images from App Bundle. As we have a texture atlas (that is, a larger combined image), we will be loading the images by that texture atlas. All sprites added in the FSMyScene file are loaded by the images from the App Bundle, so now we will be loading all the images by the texture atlas in the sprite. Lastly, some animations will be applied to them using the texture atlas to load the images.

Getting ready

Before starting with the animations using a texture atlas to load images, we should know the process of creating a texture atlas using a combination of images and doing some animations of changing frame after a fixed ...

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