This is a simple Flappy Bird game created using Pygame just out of boredom lol.
- Press the Space key to make the bird flap and avoid the pipes.
- Each pipe successfully passed through gives you 1 point.
- If you collide with a pipe or the ground, the game is over.
- Press R to replay or Esc to quit the game when the game is over.
Python 3.x, you can install the latest version of Python here: Python's Official Website
Pygame. To install Pygame. Run this command on your terminal:
pip install pygame
- Clone the repository:
git clone https://github.com/luminaa/flappybird
cd flappy bird
- Run the game by running the following command in your terminal:
python flappybird.py
You can change the game window size by modifying the WINDOW_WIDTH and WINDOW_HEIGHT variables in flappybird.py
You can change the pipe speed and bird gravity by modifying the self.gravity
value in the Bird
class and the self.x -=
value in the update method of the Pipe
class.