EasyManuals Logo

SunFounder ESP32 User Manual

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #629 background imageLoading...
Page #629 background image
SunFounder ESP32 Starter Kit
4.21.3 Programming
Here we need to have 3 sprites, Tile , Left IR and Right IR.
• Tile sprite: used to achieve the effect of alternating black and white tiles downward, in the cell phone this game
is generally 4 columns, here we only do two columns.
• Left IR sprite: used to achieve the click effect, when the left IR module senses your hand, it will send a message
- left to Left IR sprite, let it start working. If it touches the black tile on the stage, the score will be increased by
1, otherwise the score will be decreased by 1.
• Right IR sprite: The function is basically the same as Left IR, except that it receives Right information.
1. Paint a Tile sprite.
Delete the default sprite, mouse over the Add Sprite icon, select Paint and a blank sprite will appear and name it Tile.
Go to the Costumes page and use the Rectangle tool to draw a rectangle.
4.21. 2.18 GAME - Don’t Tap on The White Tile 623

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SunFounder ESP32 and is the answer not in the manual?

SunFounder ESP32 Specifications

General IconGeneral
BrandSunFounder
ModelESP32
CategoryController
LanguageEnglish