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
- Play it in the in-browser game here.
- Play it on a Windows desktop by downloading the Windows build folder and clicking on the .exe file
- Play it on a Linux desktop by downloading the Linux build folder and clicking on the executable file
Start Screen | Game Screen |
---|---|
- Python 3.10.4
- Pygame 2.1.2
- Download this codebase
- Install Python 3.10.4 on your machine
- Install Pygame 2.1.2 (Linux
python3 pip install pygame
) (Windowspython3 -m pip install pygame
)
- Run locally: Navigate to the project folder and run
python3 flappy_bird_pygame.py
to start the game. - Run in an an in-browser IDE: Visit the Replit and run in full screen mode for the best experience.
Follow the instructions below to build an executable file for Ubuntu Linux and Windows
- Install executable builder
pip install cx_freeze
- 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.
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
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