Add Paddle Controls
“You’re in control now. Left. Right. The paddle is yours.”
The same bouncing ball — plus a green paddle at the bottom you control with your LEFT and RIGHT arrow keys.
The ball bounces off the paddle just like it bounces off the walls. You are now part of the program.
Prefer to watch? Follow along with the full video.
Watch Greg build the paddle controls live — copying the prompt, pasting into ChatGPT, running the code, and making the Vibe Tweak. Pause and rewind as many times as you need.
Enjoying the videos? Subscribe on YouTube for every new lesson →
Did you finish Lesson 1.1?
This lesson builds on the bouncing ball from Lesson 1.1. If you haven’t done that one yet, start there — it only takes 5 minutes.
← Go to Lesson 1.1 firstCopy this. Paste it into your AI. Hit Enter.
Follow these steps exactly.
Don’t panic. Here’s exactly what to do:
The AI will fix it every time.
Now make it harder.
Open paddle.html in Notepad. Find the number 100 — that’s the paddle width. Change it to 40. Save and refresh your browser.