Lesson 3 · Creative Coding
Mini project: a character that reacts to you.
Time to put events to work. You're going to build a character that reacts to you — to clicks, to keys, to what you do.
This is the moment programs stop being demonstrations and start being interactive. The character won't do anything until you do something first.
Keep it small. One sprite, four or five reactions, done well.
Every reaction has the same two parts you already know:
Event (what the player did) → Action (what the character does).
Click it → it jumps. Press space → it spins. Press H → it says hello.
That's the IF/THEN shape from Chapter 4 wearing a new costume. The event is the condition; the action is the then. You already know how to design this — you're just building it now instead of writing it on paper.
5 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.