Skip to content

WinriseF/FlappyBird-Pyinstaller

Repository files navigation

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

Setup (as tested on MacOS)

  1. Install Python 3 from here (or use brew/apt/pyenv)

  2. Run make init (this will install pip packages, use virtualenv or something similar if you don't want to install globally)

  3. Run make to run the game. Run DEBUG=True make to see rects and coords

  4. Use or Space key to play and Esc to close the game.

  5. Optionally run make web to run the game in the browser (pygbag).

Notable forks

Made something awesome from FlapPyBird? Add it to the list :)

Demo

demo.mp4

About

Flappybird can be packaged directly through pyinstaller , only for study

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 14