How do you know when you've lost the game you're playing? Well, if you're playing the game we've been creating in this chapter, you will know this because it resets itself. Not very appealing from a player's standpoint, right? Most games will show you a game over screen that will, at the very least, tell you that your gameplay session has finished. Let's take a look at creating a game over screen and what information we can convey to the player.
We're going to finish our game with a game over screen, so make sure that the project file is open. You'll need a few things before we begin, so let's take a look at the list. First, you'll need a new room called rm_gameOver
. You'll also need a controller object called obj_gameOverCtrl
as well as objects called obj_btn_exit
and obj_btn_restart
. We'll be reusing obj_btn_quit
, but this will be available since we're using the same game project.