repeat 10run ten waves
Lesson / Scratch & Game Design
One snowball is an inconvenience. Fifty copied snowball scripts are a maintenance problem. Put the attack in a loop, control its timing, and give it a reason to stop.
Mark the snowball actions that would otherwise be copied.
Try repeat, forever, and repeat-until with short visible examples.
Create the fall-and-reset cycle, then add catches, misses, and waves.
Change the delay or stopping condition and test whether the game remains playable.
Show what repeats, what changes each time, and what makes it stop.
repeat 10run ten waves
foreverkeep checking for the life of the game
repeat until score = 8stop when the goal is reached
wait 0.5 secondsleave time between iterations
Guided project
Move the catcher, survive the changing attack patterns, and keep the town's emergency cocoa out of the snow.
A controllable catcher, Repeated falling snowballs, Random starting positions, Collision and missed-object rules.
Loops, Randomness, Coordinates, Collision, Score.
A working version with a tested change, one repaired problem, and a clear explanation.