Level 6

Polish

Level 6 · Chapter 9

What this lesson follows

CSTA K–12 Computer Science Standards (2017)

Algorithms & Programming · Grades 6–8

Test a program with many cases and improve it.

Code 2-AP-17Read the official text

Also practised: 2-AP-19

Common Core State Standards for Mathematics

Expressions & Equations · Grade 6

Solve an equation with one unknown.

Code 6.EE.B.8Read 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 add fun features and make the game feel finished.

1👋 Warm-Up

For teachers · goals · guide
Lesson Outcomes · for teachersCSTA 2
✦ CSTA 2-AP-17 · CSTA 2-AP-19 · ISTE 1.5.c · ISTE 1.6.b · Standards
🎯 I canadd fun features and make the game feel finished
📝 New words7 words
⏱ Lesson time~50 min
Teacher Guide

📋 Before class

⚠️ Common misconceptions

  • Students add sound and effects before the game even works. Make it work first, then polish.
  • A restart that skips one variable causes bugs that are invisible until the third round.
  • Students use 'play sound until done' inside a game loop — this blocks all other logic for the sound duration.
  • Students raise the pitch with 'change pitch effect by' but never clear it, so the next round starts at the old high pitch.

🎯 Differentiation

🐢 Struggling: Give the student the reset_game custom block already written. Have them fill in one variable at a time and test after each. One working restart is enough — do not add features.

🚀 Advanced: Challenge the student to make each level sound different: raise the pitch by a bigger step at higher levels, then clear the sound effects so a new round starts clean. Ask: what does the player hear that tells them the game got harder?

💡 During the lesson

  • Warm-UpAsk students: "What makes a game feel finished instead of half-done?" The answer for today: a finished game always shows the player what just happened — a flash, a sound, a clear restart. Any extra feature that does not help the player understand the game can wait. Get the game working and restarting cleanly first, then polish ✨ — add the fun touches. One number worth tuning is how often ⏱️ new enemies appear.
  • Try ItThe music must live on its own Music sprite — not the player or enemy sprite. Its only job is to receive the start/stop signals and loop the sound. Students who add sound to the player sprite risk the sound cutting out when the player sprite stops its scripts on game over. Sound effects belong to one sprite, so change [pitch ▾] effect by and clear sound effects must sit on the Music sprite too — the same sprite that plays the sound.
  • BuildThe two most common Ch9 failures are (1) restart not built — score still shows the old value after restart, and (2) no clear signal — the player does something but cannot tell what happened. Both must be fixed before Ch10. At the 30-minute mark, ask each student to demo: click the ▶, score some points, lose, restart. If any step breaks, that is the priority. Students who finish early should add a title screen or tune the pitch step — not more effects.