Game-Design / Sprint3_actual / Code Reviews and Reflection / Sprint 3 / JacksonCodeReviewMaintainability.txt
JacksonCodeReviewMaintainability.txt
Raw
Code Review Author: Jackson Chapman
Date: 10/25/21
Sprint 3
.cs file being reviewed: EnemyCollisionHandler.cs
.cs file author: Rithvik Potluri
Time spent: 15 minutes

The collisions betwee NPCs and blocks are handled in a similar way to the other collisions. The method HandleBlockCollision in the
EnemyCollisionHandler class checks which side the collision occured on, and then moves the NPC to outside of the block so that they are no
longer colliding. This code in maintainable, since its four behaviors should not change. If we wanted to make collisions different in the
future (for example, checking Link's velocity to better determine which side the collision occured on), this method should not change, since
all it does is respond to which side the collision occured on to make sure the NPC and block are no longer colliding - the changes could
happen in the CollisionDetection method.
Nice work Rithvik on making this method work with the other collisions!