This is a ping pong game. Use you mouse to move the paddle and make sure the ball doesn't hit the red line.
Thank you to scratch tutorials for the idea