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:
- We will start with the Game Over screen. Create a new Room called
GameOver
and applybg_MainMenu
as its background. - Create a ...
Get HTML5 Game Development with GameMaker now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.