Now we need to control the computer paddle. It will be moving up and down the y-axis and trying to follow the y-coordinate of the ball.
Watch the first video to see a good technique of how to do this.
Now that we can move the computer paddle at a constant speed, we need to find a way to vary the speed of the ball. We know that:
If we can vary the speed of the ball during game time, the game will be challenging for the player and the computer.
Create the following game now that we have a moving Computer Paddle and a player-controlled Player Paddle:
Here is an example fo what you will create: