SunFounder ESP32 Starter Kit
4.13.4 Programming
The effect we want to get is that the closer your hand is to the photoresistor, the ball sprite on the stage keeps going up,
otherwise it will fall on the bowl sprite. If it touches the Line sprite while walking up or falling down, it will make a
musical sound and emit star sprites in all directions.
1. Select sprite and backdrop
Delete the default sprite, select the Ball, Bowl and Star sprite.
Move the Bowl sprite to the bottom center of the stage and enlarge its size.
Because we need to move it upwards, so set direction of Ball sprite to 0.
538 Chapter 4. Play with Scratch