🧠Concept

Pick the right answer.

Concept · Q1
What is the purpose of the reset_game custom block?
Concept · Q2
A student puts play sound until done for the background music inside the player sprite's game loop. What happens?
Concept · Q3
The speed formula is set [enemy_speed ▾] to ((2) + ((score) / (15))). At score 15, what is enemy_speed before the cap is applied?
Concept · Q4
A student adds flash and music to the game. The player can score points, but after restart, lives, level and speed go back to their start values while the score watcher still shows the last round's score. What is broken?

👀Code Reading

Look at the blocks. Predict what happens.

Code Reading · CR1
What does this block do when an enemy touches the player?
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
Code Reading · CR2
The player just lost a round with score 24 and 0 lives, then presses restart so this block runs to the end. What do the watchers show afterward?
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]
Code Reading · CR3
This update_difficulty block runs every frame. What happens to spawn_delay when 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.

🧑‍🏫
For the teacher

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. 1️⃣Demo your project to your teacher or a classmate.
  2. 2️⃣Play one complete round and then restart.
  3. 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. 4️⃣Explain what would break if any one of these three was removed.
🧑‍🏫
For the teacher

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