đŸ•šī¸ Vibe Coding & Game Systems MVP DEMO

Module 1: The AI Pair-Programming Loop
📖 Curriculum Guide Lesson 1.2

Vibe Coding Workflow

In traditional coding, you type every character manually. In vibe coding, you act as the lead designer and code auditor while AI acts as your pair programmer.

The 3-Step Vibe Loop
  1. Specify: Tell the AI exactly what feature or behavior you want next.
  2. Audit: Review the code diff line-by-line before accepting it.
  3. Test: Run the game, test controls, and check for bugs.

Example of Specifying Intent:

"Make the purple paddle follow my mouse left and right, but lock its Y position so it stays at the bottom."

Lesson Roadmap & Checklist

Complete these steps in order to build your paddle game:

Pygame Zero Fundamentals

Your Python game uses 3 core concepts that run inside a 60 FPS game loop:

1. draw() — The Painter

Runs continuously to draw graphics on screen. You use functions like screen.fill() to erase the last frame, then draw.filled_rect() to draw game objects.

2. update() — The Game Physics Brain

Runs 60 times per second to recalculate positions, update variables like velocity (ball.x += ball_dx), and check for collisions.

3. on_mouse_move(pos) — Input Hook

An event callback that fires automatically whenever you move your mouse inside the game window, giving you coordinates pos[0] (X) and pos[1] (Y).

đŸ’ģ main.py ● Synced

AI Suggested Code Changes

Review the diff before merging into your main file.

Edit Python code above or generate via AI Co-Pilot
📝 Student Learning & Change Log Press Enter to post log entry
Session Started
As you are building, make sure to document what you are doing anytime your code changes. Use this area to explain the changes. For each change in code please input a not explaining that change.
🎮 Game Output 60 FPS
Click outside canvas to release input focus
🤖 Vibe Co-Pilot Live Gemini API
System: Ready to pair program! Complete Step 1 on the checklist by asking me to add paddle controls.
+ Step 1: Paddle Controls + Step 2: Bouncing Ball + Step 3: Score Tracker