This piece of code tracks the health points of the player. It provides the current health points for other components (public functions)
[x] track hit points
[ ] trigger death animation
[ ] hit animation
[x] trigger reset game on death (or check what actually happens in the game)
Pseudocode
class playerHealth {
public int getHealth()
private void setHealth()
public void removeHealth(int hitpoints)
public void addHealth(int hitpoints)
This piece of code tracks the health points of the player. It provides the current health points for other components (public functions)
Pseudocode class playerHealth { public int getHealth() private void setHealth() public void removeHealth(int hitpoints) public void addHealth(int hitpoints)
[...] }