When the player dies or loses we need to be able to change the game state to be a game over state. To do this we create a game over scene and then write code to determine the conditions that will trigger a game over.

You might also like