🧠Concept
Pick the right answer.
clamp to stage custom block do?👀Code Reading
Look at the blocks. Predict what happens.
game_state changes to "gameover"?when flag clicked
forever
if <(game_state) = [playing]> then
create clone of [myself v]
end
wait (spawn_delay) secs
endgame_over_triggered is still 1. What is missing?define reset game set [score v] to (0) set [lives v] to (3) set [level v] to (1) set [enemy_speed v] to (2) set [spawn_delay v] to (3) delete all of [active_powerups v] broadcast [reset_all_sprites v] set [game_state v] to [playing]
clamp to stage runs?define clamp to stage if <(x position) > (220)> then set x to (220) end if <(x position) < (-220)> then set x to (-220) end if <(y position) > (160)> then set y to (160) end if <(y position) < (-160)> then set y to (-160) end
🐛Find the Bug
Something is broken. Pick the fix.
A student's project creates enemies that keep spawning after game over. The game over screen is visible but new enemies appear every second. After Play Again (reset_game runs, no green flag), the next round must spawn enemies again.
when flag clicked forever create clone of [myself v] wait (spawn_delay) secs end
🛠️Build It
Pick a level. Build it. Check the boxes.
The cat cannot leave the stage.
More
Add clamp to stage to your player so the player cannot leave the stage.
Done when
The player stops at the stage edge in all four directions — it cannot go off-screen.
Game over happens one time only.
More
Add the game_over_triggered flag. Set it to 1 inside trigger game over and reset it to 0 inside reset_game. Check that many hits in one frame end the game one time.
Done when
Game over happens one time per round even when many enemies hit at once. Restart clears the flag and game over can happen again next round.
Check the game, then say it passed.
More
Pass all six check list items: (1) reach every part, (2) nothing freezes, (3) values and lists reset on restart, (4) no sprite leaves the stage, (5) one sound plays, (6) start screen shows. Then play a 3-minute round for a friend and tell them one bug you fixed.
Done when
All six items pass. The round runs from green flag to game over without crashing. You can tell a friend how one part of your game works.
Review the student's project, then check each thing they did.
Project Evaluation
0 of 5 ticked
💬Talk About It
Present your project to your teacher or a classmate.
- 1️⃣Show your finished game to your teacher or a friend.
- 2️⃣Play one full round, then restart and play a second round.
- 3️⃣Point to three things: (1) the reset_game block — name every value it resets; (2) the spawner script — point to the
if <(game_state) = [playing]>check and say what it does; (3) one bug you fixed in this game — say what was wrong and how you fixed it. - 4️⃣Then say one thing you put in and one thing you cut.
Watch the student present, then check each thing they did.
Presentation Checklist
0 of 5 ticked
📤Submit
Send your results to your teacher and parent.
0 of 0 answered