Now that we have coded the lives in our game, we also need to ensure that our players can realistically reach the boss and win the game.
Our boss is only triggered when the player reaches a score of higher than 10, but they can always lose points when they are hit by an enemy or if the enemy reaches the bottom of the screen. This means that our players can get negative scores and get further and further away from the end of the game.
Let’s make sure that the player can only go down to a certain score in the game.