Bug Fix


Fixed the Issue where the computer's paddle freezes in the top right corner.

After peeking through some of the game logic, I realized that the AI opponent's paddle was trying to track a destroyed object.

Upon the object being destroyed, the paddle would try to return to the origin, but since its x coordinate was clamped to its position, the y coordinate would update to track to 0, which is the top of the screen.

 Went through and changed the tracking behavior to only occur when an instance of the ball is on the screen. This should fix the issue.

Testing has been done; if any other bugs are present, please leave a comment on the project.

Thank You 

-ConfinedSnail2

Files

PONG (4).zip Play in browser
56 days ago

Get PING vs PONG

Comments

Log in with itch.io to leave a comment.

(1 edit)

There seems to be an issue where the player sprite will shift to the left. The cause is currently being investigated. 

Fix scheduled for May 21st