The game has now reached its final stages of development. Let's add some animation to the game to make it really come alive. To animate 2D sprites, we need a sprite sheet. We can use other techniques to add 2D animations, such as skeletal animation, but sprite sheet-based 2D animations are faster to make. Hence, we will use sprite sheets to add animations to the main character.
A sprite sheet is an image file; however, instead of just one single image, it contains a collection of images in a sequence so that we can loop them to create the animation. Each image in the sequence is called a frame.
Here is the sprite sheet we are going to be using to animate the player:
Looking from left to right, we can see that each frame is slightly different from the last. The main things that are being animated here are the jet pack of the player character and the...