Skip to content

hashi173/Flappy-Bird-WPF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐦 Flappy Bird - WPF Game

A modern recreation of the classic Flappy Bird game built with C# and WPF, featuring smooth 60 FPS gameplay, dynamic pipe generation, and professional UI/UX design.

Game Screenshot Game Screenshot

✨ Features

  • Smooth 60 FPS gameplay with optimized rendering
  • Random pipe heights - Each playthrough is unique
  • Physics-based movement with realistic gravity and jump mechanics
  • Professional UI with animated Game Over screen
  • Pause/Resume functionality (ESC key)
  • Score tracking with persistent high scores
  • Responsive controls with smooth bird rotation

🎮 How to Play

  • SPACE - Make the bird jump
  • R - Restart game after Game Over
  • ESC - Pause/Resume game

Avoid hitting pipes and the ground to achieve the highest score!

🛠️ Technologies Used

  • C# .NET Framework 4.7.2+
  • WPF (Windows Presentation Foundation)
  • XAML for UI design
  • DispatcherTimer for game loop (60 FPS)
  • LINQ for object management

📦 Installation

Run from Release

  1. Download the latest release from Releases
  2. Extract the ZIP file
  3. Run setup.exe

📂 Project Structure

Flappy-Bird-Game/
├── MainWindow.xaml       # UI Layout
├── MainWindow.xaml.cs    # Game Logic
├── images/               # Game Assets
│   ├── clouds.png
│   ├── flappyBird.png
│   ├── pipeTop.png
│   └── pipeBottom.png
└── README.mdb

🎯 Key Implementation Features

Performance Optimization

  • Hardware acceleration enabled
  • Object caching to avoid repeated lookups
  • Efficient collision detection
  • 60 FPS target frame rate

Game Mechanics

  • Gravity-based physics with velocity clamping
  • Dynamic bird rotation based on vertical velocity
  • Random pipe generation for replayability
  • Precise hitbox collision detection

UI/UX Design

  • Gradient backgrounds
  • Drop shadow effects for depth
  • Smooth animations (BackEase, DoubleAnimation)
  • Professional Game Over screen with score display

📸 Screenshots

Add screenshots here

📝 License

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

🙏 Acknowledgments

  • Original Flappy Bird game by Dong Nguyen

  • WPF tutorials and documentation from Microsoft

About

A Flappy Bird Clone using WPF.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages