A Flappy Bird Clone made using python-pygame playable with your voice using arduino and sound sensor It's a fork from an existing project. The code was great and well documented, really big thanks to the author sourabhv. I modified some element of the game to make it easier to play with voice.
- Clone this repository.
-
Download Arduino IDE.
Hardware:
- arduino zero
- sound sensor
- 3 links
- use the analogic output to have more precises value with a big-sound sensor
- With the Arduino IDE, open sound_reader/sound_reader.ino and upload the code on your arduino.
-
Install Python 2.7.X or 3.5.x from here.
-
Go in the
FlappySound
folder andpip install requirement.txt
. -
Edit
flappy.py
and change the variablePort
by the port used by your arduino. -
Run
python flappy.py
. -
use ↑ or Space key to play and Esc to close the game. I game: speak loudly or use your blow to make the bird fly.
-
Go in the
GUI
folder andpip install requirement.txt
. -
Run
python gui.py
while playing to see the values from the sound sensor.
Works on Windows