Summary
In this chapter, we showed you how to load graphics from a sprite sheet and extract and play the animations. Then, we showed you how to move the sprites around and change the animation to match the direction of travel. Finally, we showed you how to animate multiple sprites independently and detect when they collide with each other or the screen edges.
In the next chapter, we will add more interactivity by learning how to control your player character with virtual joysticks and buttons. We will also look at other methods of input control, including detecting touch events on the screen and using them to control the player character.