Skip to content

ag863k/Flappy-Bird-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Bird Game

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.

Features

  • 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.

Game Controls

  • Spacebar or Up Arrow: Flap the bird to rise.
  • Escape: Exit the game at any time.

Game Preview

Gameplay Video

Watch the Flappy Bird Gameplay Video

Screenshots

Homescreen

Choose your bird

Counter 3-2-1

Gameplay

GameOver

Tech Stack

This project is built using the following technologies:

Programming Language

  • Python: The core game logic is implemented using Python, leveraging its simplicity and versatility.

Libraries

  • Pygame: A cross-platform library for game development, used to handle graphics, events, and sound in this project.

Assets

  • 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.

Development Tools

  • 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.

Installation

  1. Clone the repository:
    git clone https://github.com/abhigarg48/Flappy-Bird-Game.git
  2. Navigate to the project directory:
    cd Flappy-Bird-Game
  3. Install Pygame (if not already installed):
    pip install pygame
  4. Run the game:
    python game.py

Credits

  • 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.

License

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!

About

2D Flappy Bird Game (Watch Gamplay Video below)

Topics

Resources

License

Stars

Watchers

Forks

Languages