Dino Jump Run Cactus

by Lan_Makerfabs in Circuits > Microcontrollers

4227 Views, 6 Favorites, 0 Comments

Dino Jump Run Cactus

chrome.png

Because of the coronavirus epidemic, a friend of mine had to be quarantined for 14 days. He complained to me that the quarantine time was too long and it was boring. He likes to play dino jumping cactus. This is a game that can be played when the chrome browser is offline, I plan to implement it with MicroPython ESP32, and then give him to play.

Supplies

IMG_6165.JPG

Hardware:

Software:

uPyCraft V1.1

Click this link to download uPyCraft IDE for Windows: https://randomnerdtutorials.com/uPyCraftWindows

Connection: The output pin of the button is connected to the IO14 pin and IO15 pin of ESP32 respectively, VCC is connected to 3v3.

Make Pbm Pictures

1.JPG

You can use image processing tools to open pbm pictures to draw dinosaurs and cacti, etc.

Then you can use ampy to upload the file to MakerPython ESP32.

Modify the corresponding COM port, enter the following command and press enter, upload the PBM picture:

ampy --port COM21 put play.pbm

If you have not used ampy, you can click this link: https://learn.adafruit.com/micropython-basics-load...

Show

IMG_6152.JPG
IMG_6157.JPG

This is the start interface of the game. The function of the blue button on the left is to start and pause, and the button on the right is to jump.

Games Start

IMG_4201 (1) (1).gif

It looks funny, I think my friend should like it.

You can get the code and pbm picture from here: https://github.com/Makerfabs/Game/tree/master/Dino....