Game Programming – Assignment day 22

More work on collision today.

Added HP to the parent class Entity, as well as methods that changed or displayed the hp.

Added if statements to change the HP on objects that collided.

Put the Foe object in a vector to make the code able to handle several objects of the foe class.

Added a HP check to the game loop that checks HP and deletes the objects that have no HP left, or rather HP zero.

Going to work some more on this later, add objects and maybe a second type of enemy.