SunFounder ESP32 Starter Kit
Now all the scripting is done and you can click on the green flag to run the script.
4.22 2.19 GAME - Protect Your Heart
In this project, let’s make a game that tests reaction speed.
In the stage, there is a heart protected in a rectangular box, and there are arrows flying towards this heart from any
position on the stage. The color of the arrow will alternate between black and white at random and the arrow will fly
faster and faster.
If the color of the rectangular box and the arrow color are the same, the arrow is blocked outside and level is added 1;
if the color of both is not the same, the arrow will shoot through the heart and the game is over.
4.22. 2.19 GAME - Protect Your Heart 639