Hunger and Thirst - UQdeco2800/2021-ext-studio-2 GitHub Wiki
Hunger and Thirst Design
The character state will have a hunger value and a thirst value, and their upper limit value unit is 4. They will decrease over time, and the unit of decrease is 1 each time. When these two values are 0, the character state will be shown as a low hunger state and a low thirst state. They need to increase the value unit by picking up water and food items on the map.
Implemented in the game
Thirst
Player loses 2 health per second when thirst(no water)
Hungry
Player increse 2 health per second when hunger (no food)
hunger and thirst icon display
[thirst icon]
[hunger icon]