Skip to content

This is a simple implementation of the popular game Flappy Bird in Python using the Pygame library.

License

Notifications You must be signed in to change notification settings

chizkidd/flappybird-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Bird

This is a simple implementation of the popular game Flappy Bird in Python using the Pygame library.

Game Summary

In this Flappy Bird game, the player controls a bird, attempting to fly between pairs of pipes without hitting them. The bird automatically falls down due to gravity, and the player needs to tap the space bar to flap the bird’s wings and make it rise. The goal is to survive for as long as possible.

Game Description

In this version of Flappy Bird:

  • Control a bird that continuously falls towards the ground
  • Press the spacebar to make the bird flap and move upward
  • Navigate through pairs of pipes with gaps at random heights
  • The game ends if the bird collides with a pipe or the ground
  • Score points by successfully passing through pipes

Prerequisites

  • Python 3.x
  • pip (Python package installer)
  • Pygame library

Installation

  1. Clone the repository:

    git clone https://github.com/chizkidd/flappybird-game.git
    cd flappybird-game
  2. Install the required dependencies:

    pip install -r requirements.txt

    Before running the game, you'll need to install the required dependencies. Make sure you have Python 3.x and Pip installed. Then, install the required dependencies using the requirements.txt file as shown above.

How to Play

To run the Flappy Bird game using python once the dependencies are installed, execute the following command in your terminal:

python flappybird.py
  • Press spacebar to make the bird flap
  • Navigate through the pipes
  • Try to achieve the highest score possible!

Controls

  • Spacebar: Make the bird flap
  • Spacebar (when game over): Restart the game

Files

  • flappybird.py: The main script to run the Flappy Bird game.
  • requirements.txt: A file listing the required dependencies (Pygame).

License

This project is open source and available under the MIT License.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

Author

Chizoba Obasi

About

This is a simple implementation of the popular game Flappy Bird in Python using the Pygame library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages