Skip to content

Fix the flipped dx and dy#91

Open
chadwhitely wants to merge 1 commit intogames50:2025/xfrom
chadwhitely:fix/flipped-dx-dy
Open

Fix the flipped dx and dy#91
chadwhitely wants to merge 1 commit intogames50:2025/xfrom
chadwhitely:fix/flipped-dx-dy

Conversation

@chadwhitely
Copy link

During the class refactor of pong, the dx and dy init and reset operations were inadvertently swapped. Once collision with the wall was introduced in pong-7, this was less of an issue; for anyone trying the code in pong-5 or pong-6, the balls never reach the paddles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant