🧠Concept
Pick the right answer.
reset_game custom block?play sound until done for the background music inside the player sprite's game loop. What happens?set [enemy_speed ▾] to ((2) + ((score) / (15))). At score 15, what is enemy_speed before the cap is applied?👀Code Reading
Look at the blocks. Predict what happens.
when I receive [enemy_hit_player v] flash sprite ::custom change [lives v] by (-1) if <(lives) = (0)> then set [game_state v] to [gameover] stop [other scripts in sprite v] broadcast [show_gameover v] end
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]
level is 4?define update difficulty set [enemy_speed v] to ((2) + ((score) / (15))) if <(enemy_speed) > (7)> then set [enemy_speed v] to (7) end set [spawn_delay v] to ((3) - ((level) * (0.3))) if <(spawn_delay) < (0.8)> then set [spawn_delay v] to (0.8) end
🐛Find the Bug
Something is broken. Pick the fix.
A student's project plays a round and scores 12 points. After pressing restart, lives, level, enemy_speed, and spawn_delay all reset correctly — but the score watcher still shows 12 instead of 0.
define reset game 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]
🛠️Build It
Pick a level. Build it. Check the boxes.
The cat flashes when it is hit.
More
Add a flash sprite custom block to your player sprite. Call it from the hit script so the player flashes on every collision.
Done when
A flash sprite custom block exists with ghost effect set/cleared. The player sprite flashes transparent briefly each time it is hit.
Reset every game number at the start.
More
Add a reset_game custom block that resets score, lives, level, enemy_speed, and spawn_delay. Call it on flag-click, so clicking 🚩 again restarts the game. Play two rounds and verify score starts at 0 each time.
Done when
All five variables reset to correct starting values every time the flag is clicked. The score watcher shows 0 at the start of every round.
Speed grows with score, then caps at 7.
More
Add all four fun features together: a flash on hit, speed that grows with score and caps at 7, music on its own Music sprite that starts and stops with the game screen, and a clean restart that resets every variable and clears active_powerups. Demo a two-round session: round 1 plays to game over, round 2 starts fresh with score 0 and music restarted.
Done when
All four features work together. Restart is clean and every variable returns to its start value. Speed increases with score and caps. The sprite flashes on collision. Music starts on restart and stops on game over.
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️⃣Demo your project to your teacher or a classmate.
- 2️⃣Play one complete round and then restart.
- 3️⃣Point to three things: (1) the block that shows a flash or sound when the player is hit; (2) where the restart clears all variables — the reset_game block; (3) where the game gets harder — the update_difficulty block.
- 4️⃣Explain what would break if any one of these three was removed.
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