Skip to content

Adds health & color (depending on health)#11

Merged
eliasb1 merged 3 commits intosetb2021:mainfrom
luca-nickel:main
Dec 14, 2021
Merged

Adds health & color (depending on health)#11
eliasb1 merged 3 commits intosetb2021:mainfrom
luca-nickel:main

Conversation

@luca-nickel
Copy link

This pull request adds health to the EnemyShip and makes it change its color depending on the remaining health.

Just for your information:
Since the feature was really easy to implement and just a few lines of code, I forgot to apply the correct Git workflow
(forgot to create a new branch).

Luca Nickel added 3 commits December 14, 2021 23:03
Adds tests for setter and getter of Color for the Entity class
… EnemyShip class

Adds the corresponding tests for getHealth() and reduceHealth()
Adjusts the call of the EnemyShip constructor in EnemyShipFormation
…session about testing)

Adjusts manageCollisions() in GameScreen to reduce the health of a hit ship and to only destroy it when health reached 0
@eliasb1 eliasb1 merged commit 3661c13 into setb2021:main Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants