SunFounder ESP32 Starter Kit
The effect to be achieved by the Star sprite is to appear at a random location, and if it hits Rocketship, the script stops
running and the game ends.
• When the green flag is clicked and the sprite goes to a random location, the [turn degrees] block is to make the
Star sprite move forward with a bit of an angle change so you can see that it is moving in a curve and if on edge,
bounce.
• If the sprite touches the Rocketship sprite while it’s moving, stop the script from running.
578 Chapter 4. Play with Scratch