A simple Flappy Bird clone built with C++ and SFML (Simple and Fast Multimedia Library).
- Classic Flappy Bird gameplay
- Score tracking
- High score system
- C++17 or higher
- CMake 3.10 or higher
- SFML 2.5.1 or higher
-
Clone the repository:
git clone <repository-url> cd flappy-bird
-
Create a build directory and compile:
mkdir build && cd build cmake .. make
From the project root directory:
./FlappyBirdSFML/
├── 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
- SFML 2.6.1 or higher (graphics, window, system modules required)
- C++17 or higher
- CMake 3.10 or higher
- Install SFML using vcpkg or download from the SFML website
- Update the CMake configuration if needed
- Use Visual Studio or MinGW to build the project
# Install SFML dependencies
sudo apt-get install libsfml-dev
# Build and run
mkdir build && cd build
cmake ..
make
./FlappyBird# Install SFML using Homebrew
brew install sfml
# Build and run
mkdir build && cd build
cmake ..
make
./FlappyBird- SFML Team for the amazing multimedia library
- Original Flappy Bird game