Now we’re getting into the meat of the game.
In Pong, your opponent scores a point by getting the ball behind your paddle. There’s a few things we need to sort out here.
First, let’s sort out collision detection with the goal and resetting the ball. Then we can set up a scoring mechanism.