Making danger real with player death
During the last chapter, we made significant progress towards a balanced game, in which enemies threaten the player but the player can use skill to overcome that challenge. One missing component glaringly remains. If the player runs out of health, they should not be able to continue progressing through the game. Instead, we will be taking our learning from the win screen we created, and applying it to a lose screen. This screen will enable the player to restart the level with full ammo and a freshly filled health bar, but will also negate any progress they had made toward reaching their target goal.