The original code is https://github.com/sourabhv/FlapPyBird
Since the original code cannot be packaged directly through pyinstaller, there will be image missing problems, so we have changed the original code and can directly generate a complete exe file through pyinstaller after installing the necessary packages.
You can generate an executable file directly through <pyinstaller --onefile --add-data "assets/sprites;assets/sprites" --add-data "assets/audio;assets/audio" main.py>
A Flappy Bird Clone made using python-pygame
If you are in interested in the old one-file code for the game, you can find it here
-
Install Python 3 from here (or use brew/apt/pyenv)
-
Run
make init(this will install pip packages, use virtualenv or something similar if you don't want to install globally) -
Run
maketo run the game. RunDEBUG=True maketo see rects and coords -
Use ↑ or Space key to play and Esc to close the game.
-
Optionally run
make webto run the game in the browser (pygbag).
- FlapPyBlink Blink to control the bird
- FlappyBird Fury Mode
- FlappyBird Model Predictive Control
- FlappyBird OpenFrameworks Port
- FlappyBird On Quantum Computing
Made something awesome from FlapPyBird? Add it to the list :)