change x by 20move right
Public lesson / Scratch & Game Design
A giant pigeon is chasing your character across Calgary. The computer cannot see the chase the way a person does. How does it know where the player is, where the pigeon is, or whether they have collided?
Lesson rhythm
Turn a ridiculous chase into a precise position problem.
Read x and y, predict changes, and reset to the origin.
Build the core movement and chase systems together.
Change one rule and test the consequences.
Show the system and explain its numbers.
Learning goals
Theory kernel
change x by 20move right
change x by -20move left
change y by 20move up
change y by -20move down
go to x: 0 y: 0return to the centre
Scratch direction and Scratch position are related, but they are different. Direction describes where a sprite faces; position describes where it is.
Guided-build preview
Reach a safe place while a huge, unreasonable pigeon chases you across the map. The game should be funny to play and precise enough to explain.
Keyboard movement in four directions, Known starting positions, A pursuing pigeon, One or more safe areas.
Coordinates, Movement, Conditions, Collision, Game State.
A working version, one modification, one repaired problem, and an explanation.
Teacher checkpoints
Common mistakes
Modification challenge
Higher levels are optional. They deepen the current idea rather than turning a beginner lesson into an unrelated advanced task.
End-of-class demonstration