The paddle will follow wherever you move your mouse, the ball will bounce when it touches the paddle, and the game will reset when the ball touches the line.
I used the tutorial which makes me kinda lame, but at least I did some of it on my own. Also this is completely unrelated, but check out geometry dash by @griffpatch. Also the ball follows a set path sorry :(