This is a simple implementation of the popular game Flappy Bird in Python using the Pygame library.
In this Flappy Bird game, the player controls a bird, attempting to fly between pairs of pipes without hitting them. The bird automatically falls down due to gravity, and the player needs to tap the space bar to flap the bird’s wings and make it rise. The goal is to survive for as long as possible.
In this version of Flappy Bird:
- Control a bird that continuously falls towards the ground
- Press the spacebar to make the bird flap and move upward
- Navigate through pairs of pipes with gaps at random heights
- The game ends if the bird collides with a pipe or the ground
- Score points by successfully passing through pipes
- Python 3.x
- pip (Python package installer)
- Pygame library
-
Clone the repository:
git clone https://github.com/chizkidd/flappybird-game.git cd flappybird-game
-
Install the required dependencies:
pip install -r requirements.txt
Before running the game, you'll need to install the required dependencies. Make sure you have Python 3.x and Pip installed. Then, install the required dependencies using the
requirements.txt
file as shown above.
To run the Flappy Bird game using python once the dependencies are installed, execute the following command in your terminal:
python flappybird.py
- Press spacebar to make the bird flap
- Navigate through the pipes
- Try to achieve the highest score possible!
- Spacebar: Make the bird flap
- Spacebar (when game over): Restart the game
flappybird.py
: The main script to run the Flappy Bird game.requirements.txt
: A file listing the required dependencies (Pygame).
This project is open source and available under the MIT License.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Chizoba Obasi
- GitHub: @chizkidd