Controlling the player paddle

Wow! So now your ball is bouncing around the game area, right?!

Let's move on to controlling the Player Paddle. There are many ways to do this:

  1. We could use the arrow keys on the keyboard.
  2. We could use AWSD keys on the keyboard.
  3. We could make the paddle follow the mouse cursor as it moves up and down the screen.

The video will show you how to do it the third way. However, feel free to explore the other options if you want.

The video will also show you how to fix an imperfection in the way the ball bounces off the wall/side/edge of the game area.


You challenge is to make the ball in your game bounce perfectly off each of the 4 game walls/sides/edges... and get your Player Paddle to move on the y-axis of the game area.