A fun and addictive Flappy Bird clone built with Python and Pygame! Navigate your bird through pipes by timing your jumps perfectly. How high can you score?
- 🏠 Attractive Home Screen - Start your game journey with a clean, intuitive interface
- 🎯 Simple One-Button Controls - Easy to learn, difficult to master!
- 🌈 Colorful Graphics - Custom bird and pipe sprites with a beautiful background
- 🏆 Score Tracking - Keep track of your high scores
- 🔄 Game Over Screen - With options to restart or return to home
- 🎵 Smooth Gameplay - Optimized performance with 60 FPS
- Python 3.6 or higher
- Pygame library
- Clone this repository or download the ZIP file
- Install the required dependencies:
pip install pygame- Navigate to the game directory
- Run the game:
python flappy_bird.py- Start the Game: Press SPACE on the home screen to begin
- Control the Bird: Press SPACE to make the bird flap and gain height
- Navigate: Guide the bird through the gaps between pipes
- Score Points: Each pipe you successfully pass earns you 1 point
- Game Over: If you hit a pipe or the ground, the game ends
- Restart: Press R to play again or H to return to the home screen
- SPACE - Make the bird jump/flap
- R - Restart the game after Game Over
- H - Return to home screen after Game Over
- The bird constantly falls due to gravity
- Pressing SPACE gives the bird upward velocity
- Pipes generate randomly with varying heights
- Collision with pipes or the screen boundaries ends the game
- Each successfully passed pipe increases your score
Python Flappy Bird Game/
├── flappy_bird.py # Main game code
├── bird.png # Bird sprite image
├── background.png # Background image
├── pillar.png # Pipe/pillar image
└── README.md # Game documentation
- Game Engine: Pygame
- Screen Size: 400x600 pixels
- Frame Rate: 60 FPS
- Physics: Simple gravity and velocity system
- Collision Detection: Rectangle-based collision system
You can easily customize the game by modifying these constants in the code:
SCREEN_WIDTHandSCREEN_HEIGHT- Change the game window sizeGRAVITY- Adjust how quickly the bird fallsBIRD_JUMP- Change the jump strengthPIPE_GAP- Make the gaps between pipes larger or smallerPIPE_FREQUENCY- Adjust how often new pipes appear
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
This project is open source and available under the MIT License.
- Original Flappy Bird game by Dong Nguyen
- Pygame community for the excellent game development library
- All the contributors who have helped improve this game
⭐ Enjoy the game and happy flapping! ⭐