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