Assignment 8 (bug fixes)
- ncampanelli0
- Nov 12, 2019
- 1 min read
change log:
1. Revised collision for ball to bounce off paddles properly (instead of requiring perfect pixel alignment with a sweet spot, which was the original collision detection. I figured out it was set to find a sweet spot on testing purely by accident).
2. Added collision to prevent paddles from going off screen.
3. Removed segments of code that no longer have any use (collision variables and dist() related code).
4. Removed debug code (text() and print()).
github repository: https://github.com/ncampanelli0/pong-in-p5
Comments