Lesson 7: Make a Mini Game

⏱ ~15 min Lesson 7 of 8 💚 Free

You've learned sequences, loops, events, conditions, and functions. Now let's put it all together to make a mini game! Games use every coding concept you've learned. You're ready to be a game designer!

Key Concepts

Game Loop

Every game has a loop that runs over and over — usually 60 times per second! Each loop: read player input → update the game → draw the screen. This is the game loop.

Score & Win Condition

Games track a score. There's usually a win condition (score reaches 100, collect all stars) and a lose condition (time runs out, lives reach 0). These are conditions in code!

Putting It Together

Your mini game will use: a loop (game runs continuously), events (click or button press), conditions (did you catch it? is time up?), and functions (draw the character, update the score).

🆕 Activity: Catch the Stars! ⭐

Stars fall from the sky. Click them before they hit the ground to score points! You have 30 seconds.

✅ Check Your Understanding

1. What runs over and over in a game, updating the screen?

2. A win condition is:

3. Which concepts does a game use?