As it says in the title, it's simple. You move your mouse where you want to have the paddle go,( it only goes side to side) and keep the ball from hitting the red.
It didn't take to long because this is my first project, and I don't have anyone to give credit to I know.