Adding risk and reward to destruction

So far there has been very little risk or reward in the game at all. We have added a Shop to the game where we can purchase items, but we are not yet able to earn any cash. We can use as much equipment as we want, as long as it is in our inventory, which means that there is no need for strategy. We need to add a Game Over Screen, if the player ever runs out of money or completes all the levels. We also need a Score Screen as currently the player has no idea how well they did so we will want to show that as well. It's time to add these features starting with rewarding the player points:

  1. We will start with the Game Over screen. Create a new Room called GameOver and apply bg_MainMenu as its background.
  2. Create a ...

Get HTML5 Game Development with GameMaker now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.