Skip to content

FatimaaShahid/Flappy-Bird-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐦 Flappy Bird Game — Python + Pygame

A visually charming, smooth, and addictive clone of the original Flappy Bird, built in Python using Pygame. Designed for fun and for learning, this project demonstrates game development principles such as animation, physics, collision detection, and event handling.

Flappy Bird Banner


🎮 Features

  • 🕹️ Tap-to-fly mechanics with gravity and impulse
  • 🏞️ Infinite scrolling background and ground
  • 🚧 Randomly spawning pipes with collision detection
  • 🖼️ Game-over screen and score tracking
  • 💡 Clean, modular code structure for learning
  • 🎵 Cool background music for every move

🛠 Tech Stack

  • Python 3
  • Pygame Library
  • Custom game assets (images + sounds)

📁 Folder Structure

Flappy-Bird-Game/
│
├── main.py                # Main game logic
├── music/                 # Game sound effects or background music
├── pictures/              # Bird, pipes, background, base images
├── flappybird.png         # Face/banner of the game
└── README.md              # Project documentation


▶️ How to Play

Your goal: Pass through the pipes without hitting them or the ground. The longer you survive, the higher your score!

Controls:

  • SPACE or mouse click to flap the bird upward
  • Don’t hit the pipes or fall to the ground

🚀 Getting Started

Prerequisites

Make sure Python 3 and pip are installed.

Installation

git clone https://github.com/FatimaaShahid/Flappy-Bird-Game.git
cd Flappy-Bird-Game
pip install pygame

Run the Game

python main.py

🤓 What I Learned

  • Basics of 2D game design using Pygame
  • Physics simulation with gravity and motion
  • Real-time event handling (keyboard inputs)
  • Sprites, sound, and collision logic
  • Game loop and FPS control

✨ Future Improvements

  • Introduce a high-score saving system 💾
  • Game menu or splash screen 🖼️
  • Pause/Resume functionality ⏸️

🙌 Credits


📬 Connect with Me


If you like this project, please give it a star!
Fork it, play it, and feel free to suggest improvements.

About

A simple Flappy Bird clone built with Python and Pygame, challenging players to navigate a bird through obstacles while scoring points.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages