Pop the bubbles as they come out! This introduces - Cloning for the bubbles - Some random numbers - Also drawing sprites, and some color effects (ghost bubbles) And a chance to practice: - Data, as score - If loops, front layers We'll also look at Blocks, to simplify our code
To build up 1- Paint the background (try the 2-tone fading effect). Draw machine. Paint the bubble (2 costumes). 2- Loop to create clones - when I start, move forever, then delete clone 3- Now add effects - random direction, random size, ghost effect. 4- Now change Forever to Until touching edge (kickstart x10 first), then Delete clones 5- If bubble touching mouse pointer - next costume, pop, delete. 6- Move those setup & pop out to blocks - make it pop on edge too. (Discuss tidy code, avoiding duplicate code) 7- Add a score (data)