A Python implementation of the classic Flappy Bird game using Pygame.
This is a clone of the popular Flappy Bird game where players control a bird that must fly between pipes without hitting them. The game features:
- Animated bird with realistic rotation
- Random pipe generation with varying gaps
- Score tracking and high score system
- Sound effects and background music
- Smooth scrolling background and base
- Python 3.x
- Pygame library
- Clone this repository:
git clone https://github.com/yourusername/flappy-bird.git
cd flappy-bird- Install Pygame:
pip install pygame- Run the game:
python game.py- Game Controls:
- Press SPACE to start the game
- Press SPACE to make the bird flap
- Press SPACE to restart after game over
flappy-bird/
│
├── game.py # Main game file
├── assets/ # Game graphics
│ ├── background.png
│ ├── base.png
│ ├── bird-upflap.png
│ ├── bird-midflap.png
│ ├── bird-downflap.png
│ └── pipe.png
│
├── audio/ # Game sounds
│ ├── wing.wav
│ ├── hit.wav
│ ├── point.wav
│ ├── die.wav
│ └── background.wav
│
└── highscore.json # High score storage
- Smooth bird animation and rotation
- Random pipe generation
- High score system
- Sound effects for:
- Wing flap
- Point scoring
- Collision
- Game over
- Background music
- Persistent high score saving
Assets and original game concept by .GEARS (original Flappy Bird creator)