Daria602 / SpacePatrol

A game in Unity developed for learning purposes.
0 stars 0 forks source link

Add health for both players #31

Open Daria602 opened 1 year ago

Daria602 commented 1 year ago

Three hearts for each player The hearts should be located on top-right for player 1 and top-left for player 2 Add for both players functions TakeDamage(int damageAmount) and RegainHealth(int healthAmount). Implement the functions so that when TakeDamage(someDamageAmount) is called, the amount of hearts corresponding to someDamageAmount disappears and the opposite for RegainHealth(someHealthAmount). Take assets from here: https://github.com/Daria602/SpacePatrol/issues/32