Time for action — creating the Game Over layout
We'll use a Game Over layout to show the player their final score and tell them that they have completed all of the (currently) existing levels.
1. On this layout, we will have a randomly positioned firework with accompanying firework sound. Create a sound that you would like to be played when the firework explodes and name it
Firework.wav
before placing it in the project folder.2. Create a new layout for our project and name it
GameOver
. Also, rename the event sheet toGameOver events
.3. Select a
Layout color
for the layout by selecting it and viewing its properties. The colorLightBlue
works well.4. Create three text objects,
txtCongratulations, txtUseEditor
, andtxtFinalScore
, for this layout. Have theirHorizontal alignment
values set toCenter
and set the texts, colors, and positions of these objects to those shown in the following screenshot:5. Next, create another text object and put it in the bottom-left corner. Name this as
txtExitKeys...