This is a 2D Flappy Bird Game created using Python and Pygame. The objective of the game is to navigate a bird between pipes by making it "flap" using the spacebar or the up arrow. The game ends when the bird hits the ground or a pipe.
- Choose Bird: Choose your favourite bird and Press Enter to begin the game.
- Countdown: The game will begin with the counter of 3-2-1.
- Bird Control: Press Space or Up Arrow to make the bird flap and rise.
- Random Pipe Generation: Pipes appear at random heights and move from right to left.
- Collision Detection: The bird collides with pipes or the ground to end the game.
- Scoring: The score increases as the bird successfully navigates through pipes.
- Game Over Screen: The game shows a "Game Over" screen when the player hits an obstacle.
- Spacebar or Up Arrow: Flap the bird to rise.
- Escape: Exit the game at any time.
Watch the Flappy Bird Gameplay Video
Homescreen
Choose your bird
Counter 3-2-1
Gameplay
GameOver
This project is built using the following technologies:
- Python: The core game logic is implemented using Python, leveraging its simplicity and versatility.
- Pygame: A cross-platform library for game development, used to handle graphics, events, and sound in this project.
- Image Assets: Custom and pre-designed images for the bird, pipes, background, and game over screen.
- Sound Assets: Various sound effects (e.g., wing flap, point scored, collision) to enhance the gameplay experience.
- VS Code: Used as the primary code editor for writing and debugging the Python code.
- Git: Version control system for tracking changes and collaboration.
- GitHub: Repository hosting service for sharing and managing the project's source code.
- Clone the repository:
git clone https://github.com/abhigarg48/Flappy-Bird-Game.git
- Navigate to the project directory:
cd Flappy-Bird-Game
- Install Pygame (if not already installed):
pip install pygame
- Run the game:
python game.py
- Images: All assets (bird, pipes, background, etc.) used in the game are sourced from free resources and custom-made images.
- Sounds: Sounds are used to enhance the gameplay experience.
This project is open-source and available under the Creative Commons 1.0 (CC0) License.
Feel free to contribute by forking the repository and submitting pull requests. Enjoy playing the game!