forked from ntasfi/PyGame-Learning-Environment
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Detecting collisions in Pong is currently outside expected behavior. Only the center-point of the ball is checked against the paddle's front edge. This causes overlapping of the ball and paddle before the collision is detected and that can cause the ball to overlap the corner of a paddle without a collision being detected.
It should be a goal of this implementation to refactor the collision detection into more readable code (potentially utilizing pygame's in-built collision-detection, if it doesn't require a complete refactoring) without significantly changing the game's behavior.