Level 2

My First Game

Level 2 · Chapter 15

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 3–5

Split a big problem into smaller parts.

Code 1B-AP-11Read the official text

Also practised: 1B-AP-10 · 1B-AP-12 · 1B-AP-15

Common Core State Standards for Mathematics

Operations & Algebraic Thinking · Grade 3

Know times and sharing facts up to 10 × 10.

Code 3.OA.C.7Read the official text

The short lines are our own words. We matched this lesson to these standards ourselves; the standards' owners have not reviewed or endorsed this course.

Common Core State Standards © 2010 National Governors Association Center for Best Practices and Council of Chief State School Officers. All rights reserved.

Today you will build a simple chase game using all Level 2 skills.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 1B
✦ CSTA 1B-AP-11 · CSTA 1B-AP-10 · CSTA 1B-AP-12 · CSTA 1B-AP-15 · ISTE 1.5.a · ISTE 1.4.a · Standards
🎯 I canbuild a simple chase game using all Level 2 skills
📝 New words8 words
⏱ Lesson time~45 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students build everything on one sprite — remind them Dog2 has its own script stack, separate from Cat.
  • Students may build the when I receive [caught ▾] script on Cat — remind them Cat sends the 'caught' message and Dog2 is the one that receives it and moves away.

🎯 Differentiation

🐢 Struggling: Build Cat's chase script first and test Cat chasing Dog2 before adding the 'caught' message. Separate the two sprite tasks. Give a printed script card for Dog2's when I receive [caught ▾] script so they focus on placing it, not remembering it.

🚀 Advanced: Add a timer variable: start a timer when the flag clicks, stop it when Cat touches Dog2 10 times. This previews Level 3 variables and score tracking.

💡 During the lesson

  • Warm-UpThis is the capstone chapter — treat it like a celebration. Open with: "How many of you remember Chapter 7? Chapter 9? Chapter 14?" Briefly call out what each chapter taught. Then say: "Today all of those pieces click together into one game." The emotional framing matters for motivation. Frame the game words: the player 🕹️ can win 🥇 by reaching the goal 🥅. In this game, Cat chases 🐆 and every catch 🫴 counts.
    Before building, demo the finished game for the class. Click the ▶, watch Cat catch Dog2, and watch Dog2 teleport away. Ask: "What did Dog2 do when Cat touched it?" (Jumped to a new place.) "Which chapter taught us that?" (Ch7 random position.) Students recognize their own learning — powerful moment.
  • Try ItThis is decomposition in action — each sprite has one clear job. Cat's job is to chase; Dog2's job is to flee. Ask: "Can Cat do Dog2's job too?" (Technically yes, but that makes the code confusing.) Use Experiment 2 to show timing control (wait slows the chase). Use Experiment 3 to show that point towards is what makes chasing feel "smart" — without it, Cat just walks in a line. Plant the seed of behavior-by-block-choice.
  • PlanDo the first box together. In the other boxes, pick, then watch both stages. The small stages run Cat's script; Dog2 waits at its spot, so the GOAL cat simply stops on the dog. In Build, Dog2's own script makes it jump. Then ask: "Which sprite does most of the moving?" (Cat — it moves every frame.) "Which sprite only reacts?" (Dog2 — it reacts when touched.) This distinction between "active" and "reactive" code is a key abstraction for later levels.
  • BuildThe most common error: students build Dog2's when I receive script on Cat, or forget to click Dog2 before building. Before step 3, ask: "Which sprite are we coding now?" (Dog2.) Show the sprite panel and confirm Dog2 is highlighted (blue border). Also check that Cat's touching [Dog2 ▾]? has "Dog2" selected in the dropdown, not "mouse-pointer." Point out the two branches of Cat's if/else (Ch10) and the broadcast/when I receive pair (Ch13) — the capstone brings both together.