Skip to content

Collision detection in Pong #3

@barnesjt

Description

@barnesjt

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingrefactor

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions