
Peashooter Lawn Guard - XIAO 1.47" Touch Display (ESP32-S3) - huangduoduo11 - CodeCraft Hub
Maker application on CodeCraft Hub. Two keys, five lanes. Slide your peashooter into place, auto-fire at every zombie, and never let one reach the bottom of the lawn.
Documentation
You stand at the bottom of the lawn. Tap USR1 or USR2 to slide the peashooter one lane at a time. Peas fire on their own, so all you have to do is line up the shot. If a single zombie walks past the bottom line, the run is over.
Five lanes, three hearts. Clearing a wave scores points, and the best score stays on the board even after you unplug it.
Inspired by the open-source repository: https://github.com/beauli/folotoy-ai-passport
Deploy steps
- Flash the firmware
Plug the XIAO ESP32-S3 1.47" Touch Display into your computer with a USB-C data cable, then click the button below. The image is a merged build: it is written from address 0x0 with a full flash erase. The board reboots by itself when the write finishes; if it does not start, press reset once.
Flash firmware to your device (in-app tool on CodeCraft Hub).
- Play
The game starts as soon as the board boots. Tap USR1 to step one lane left and tap USR2 to step one lane right; hold either key to keep sliding. Hold both keys for about 600 ms to pause or resume.
The peashooter stops at the edge of the lawn instead of wrapping around. After GAME OVER, press any key to start a new run; the best score is kept.