Skip to content

badnikhil/flappy-bird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flappy Bird Clone

A simple Flappy Bird clone built with C++ and SFML (Simple and Fast Multimedia Library).

Game Screenshot

Features

  • Classic Flappy Bird gameplay
  • Score tracking
  • High score system

Prerequisites

  • C++17 or higher
  • CMake 3.10 or higher
  • SFML 2.5.1 or higher

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd flappy-bird
  2. Create a build directory and compile:

    mkdir build && cd build
    cmake ..
    make

Running the Game

From the project root directory:

./FlappyBird

Project Structure

SFML/
├── assets/               # Game assets (sprites, sounds, fonts)
│   ├── fonts/           # Font files
│   └── res/             # Image assets
├── include/             # Header files
│   ├── AssetManager/    # Asset management system
│   ├── game/            # Game logic headers
│   ├── InputManager/    # Input handling
│   └── SplashState/     # Game state management
├── src/                 # Source files
│   ├── AssetManager/    # Asset manager implementation
│   ├── game/           # Game logic implementation
│   ├── InputManager/   # Input manager implementation
│   └── screens/        # Game screens/state implementations
├── CMakeLists.txt      # Build configuration
└── README.md           # This file

Dependencies

  • SFML 2.6.1 or higher (graphics, window, system modules required)
  • C++17 or higher
  • CMake 3.10 or higher

Building on Different Platforms

Windows

  1. Install SFML using vcpkg or download from the SFML website
  2. Update the CMake configuration if needed
  3. Use Visual Studio or MinGW to build the project

Linux

# Install SFML dependencies
sudo apt-get install libsfml-dev

# Build and run
mkdir build && cd build
cmake ..
make
./FlappyBird

macOS

# Install SFML using Homebrew
brew install sfml

# Build and run
mkdir build && cd build
cmake ..
make
./FlappyBird

Acknowledgments

  • SFML Team for the amazing multimedia library
  • Original Flappy Bird game

About

just a flappy bird game build in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published