About the project

Description of the project

This is a clone of the video game Flappy Bird built while following the Clear Code tutorial part 1 and Clear Code tutorial part 2. Flappy Birdis a mobile game developed by Vietnamese video game artist and programmer Dong Nguyen (Vietnamese: Nguyễn Hà Đông), under his game development company .Gears. The game is a side-scroller where the player controls a bird, attempting to fly between columns of green pipes without hitting them


Click here for the video demo

Click here for the playable in-browser demo

  1. Play it in the in-browser game here.
  2. Play it on a Windows desktop by downloading the Windows build folder and clicking on the .exe file
  3. Play it on a Linux desktop by downloading the Linux build folder and clicking on the executable file

Screen shot of the application

Start Screen Game Screen

Technology stack

  1. Python 3.10.4
  2. Pygame 2.1.2

Install the project on Linux or Windows:

  1. Download this codebase
  2. Install Python 3.10.4 on your machine
  3. Install Pygame 2.1.2 (Linux python3 pip install pygame) (Windows python3 -m pip install pygame)

3: Run project

  1. Run locally: Navigate to the project folder and run python3 flappy_bird_pygame.py to start the game.
  2. Run in an an in-browser IDE: Visit the Replit and run in full screen mode for the best experience.

Build project executable

Follow the instructions below to build an executable file for Ubuntu Linux and Windows

  1. Install executable builder pip install cx_freeze
  2. Build the Windows executable by running the following command python3 setup.py build

The Linux executable file will in the following folder ./build/exe.linux-x86_64-3.10

The Windows executable file will in the following folder ./build/exe.win-amd64-3.10. The executable must contain all supporting files in this folder to run.


Acknowledgements

Special thanks to Clear Code for a great tutorial. The tutorial was explained very well, brief and very impactful in showing the basics of Pygame.

The tutorial also has a link to the the original image files and the original sound files. The github repo for the actual tutorial can be found here


License

The codebase is MIT licensed unless otherwise specified. Feel free to fork or download this code and use as specified in the license.

To be modified further by Kgotso Koete
September 2022