Kenjor97 / KriticGamesProject

2D platform Videogame , side scrolling, cartoon style, set in a medieval world where the protagonist will have to overcome the different obstacles to defeat his enemy
MIT License
6 stars 1 forks source link

Implement Player Interaction With Basic Props #44

Closed Jason450 closed 6 years ago

Jason450 commented 6 years ago

When enemies die they drop a heart. Player's life should restore certain amount or fully restore when he picks the heart.

If player gets 3 Heart Coins it will increase his maximum life by 1 and fully restored.

EXPECTED RESULT:

Enemies which dies drops a heart that restores player's life. If player gets 3 Heart Coins it will increase his maximum life.

Implemented Heart functionality in this script Hearts.cs

Implemented Heart drop from dead enemies in this script EnemyBehaviour.cs

Implemented Heart Coin power up in this script HeartCoinBehaviour.cs

Jason450 commented 6 years ago

Coin script interaction with player's life implemented in this commit https://github.com/Kenjor97/KriticGamesProject/commit/442ddfeb5554083e2661184b9e57e060ca3ea7e4

Jason450 commented 6 years ago

Heart script, heart prefab and heart drop from dead enemy implemented in this commit https://github.com/Kenjor97/KriticGamesProject/commit/64c838bf2f5c9dfadf16bff55ea8100630722961