STEP 6: Our player will have four lives, meaning the player will be able to hit a hazard four times before the game ends.
- Create an Integer Variable. Name it lives and set its value to 4.
- Use Variable Display to display the value of lives.
- Name the display lives_display and position it at (-215, -125).
To navigate the page using the TAB key, first press ESC to exit the code editor.