Bad day(sort of)

It got a bit late last night so i decided to write the blog post today instead. 

Yesterday i worked alone adding an attack method for the player which depended which weapon the player had equipped at the current time, i had limited success and decided i should wait until the collisions and items had been implemented before doing it. 

During the afternoon i worked on re-implementing the collision between player-Guard and player-Exit, i did this by moving them from the Engine class into the level.update method. After half the evening i realized(Oliver informed me) this was a really stupid idea and that i should make a collision manger to check for collisions and then call for a function within the objects themselves to handle any functionality needed. I added a CollisionManager class and was able to use parts of the previous collision system to check if two objects collided. This system is written so that it assumes at least one of the objects have their origin set to their center and also a rectangle, it will have to be modified to work with the sound circles the player will emit later.

 Image