Now let’s look at using that image to create an animation. This gives 22 240×314 bird images and 3 empty spaces. Now imagine the above image as a 5×5 grid of images. It’s a seamless animation of a robin in flight that I downloaded from here. Let’s take a look using the texture I used for the particle example. It’s also generally easier from a resource management perspective. Loading a single file into memory is often more efficient than loading dozens on small images. ![]() A spritesheet ( also known as a texture atlas ), is simply a collection of images together in a single image file. In my previous Phaser tutorial on particles I used a sprite sheet to provide particles in one of the examples, then realized I hadn’t covered how to actually use a sprite sheet yet, oops! So this tutorial is going to correct that oversight. Previous Part Table Of Contents Next Part
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |