EasyManua.ls Logo

SunFounder ESP32 - Page 678

Default Icon
771 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder ESP32 Starter Kit
Now we have a wand that shoots star bullets.
3. Fight!
The wand and the dragon are currently still at odds with each other, and were going to make them fight. The dragon is
strong, and the wand is the brave man who crusades against the dragon. The interaction between them consists of the
following parts.
1. if the wand touches the dragon, it will be knocked back and lose life points.
2. if lightning strikes the wand, the wand will lose life points.
3. if the star bullet hits the dragon, the dragon will lose life points.
Once that’s sorted out, let’s move on to changing the scripts for each sprite.
If the Wand hits the Dragon, it will be knocked back and lose life points.
672 Chapter 4. Play with Scratch

Table of Contents