Food and Water System - UQdeco2800/2021-ext-studio-2 GitHub Wiki
Overview Food and water exist in the game as a form of resource. The player needs to constantly find water and food to keep his health status. The hunger value is set to four drumsticks,and the thirst value is set to four water drops. The hunger value and thirst value will decrease with time. The player will gain negative status when he has no drumsticks or water. If he is thirsty, this will lead to a continuous blood loss. if he is hungry, the player will be slowed.
You can pick up food or drop of water by colliding with them on the map. Food can be stored in the bag, water drops cannot be stored. After picking up a chicken leg, the hunger value is increased by one (the upper limit is 4), and the water works as same. If you do not pick up food and water, the food and water in the inventory will be automatically consumed until your hunger value/thirst value is restored to the best state.
Food and water will appear randomly on the map. Please keep an eye on your status, get the Resources as much as possible.