In the previous chapter, we looked at how to create the game; in this chapter, we will finish the Gameloop so that you can play the game. The objective of the game is to make sure that none of the enemies are able to make it to the left of the screen. If they do, it is game over.
We will add a scoring system so that the player knows how much they have scored in a round. For each enemy that is shot down, the player will get one point. We will also add text to the game in order to display the title of the game, the player's score, and a small tutorial that shows you how to play the game.
At the end of this chapter, we will embellish the game. We will add audio that will be used as background music, as well as sound effects for when the player shoots the rocket and when the player's rockets hit the enemy. We will also add some animation to the player...