SunFounder ESP32 Starter Kit
4.17.3 Programming
The effect we want to achieve is to use the button to control the direction of the Beetle sprite to move forward and eat
the apple without touching the black line on the Maze backdrop, which will switch the backdrop when eaten.
Now add the relevant backdrops and sprites.
1. Adding backdrops and sprites
Add a Maze backdrop via the Choose a backdrop button.
Delete the default sprite, then select the Beetle sprite.
582 Chapter 4. Play with Scratch