Devlog 3: Added Player Health & Hunger


This week, I was focused on added health and hunger to the game. The health works by using a variable to easily visualise the player's health, I also used a variable to visualise the player's hunger. The game will remove health points when the player is attacked, or they take fall damage. The player can fill their health bar by finding/crafting health items or waiting for their health to regenerate. 

The game will take away a set amount of hunger points from the player at a constant rate. If the hunger gets to zero, the game will start to remove health points from the player until they eat food or the player dies. The player's health was easy to add because it was like the health that I used for my other games. The player's hunger was also easy to add because I used a simple hunger system.