Just watch. You can change the velocity variable but if it’s set to 0, it will pick a random number instead. The paddle follows the mouse and will make the ball bounce.
All code by me. All costumes by me.