A Flappy Bird inspired game
This game is written in C++ and utilizes the SFML 3 API. The game starts immediately upon execution. The user left-clicks to "flap" and elevate the bird and right-clicks to dive which accelerates the rate at which the bird falls. Obstacles must be navigated to gain points and if hit, the bird dies and falls to the ground. The player gets three lives before it is game over.
| Tool | Windows | Linux |
|---|---|---|
| C++ compiler | MinGW-w64 (extract to C:/MinGW, add C:/MinGW/bin to PATH) |
g++ via package manager |
| CMake | cmake.org/download | sudo apt install cmake |
| Ninja | github.com/ninja-build/ninja/releases | sudo apt install ninja-build |
| SFML 3.0 | Download MinGW GCC 64-bit build from sfml-dev.org, extract to C:/SFML |
sudo apt install libsfml-dev (or build from source if SFML 3 is not yet in your distro's repos) |
git clone https://github.com/pideltajah/HappyBird.git
cd HappyBird
mkdir build && cd build
cmake .. -G Ninja
ninjaThen run:
- Windows:
./HappyBird.exe - Linux:
./HappyBird
If SFML is installed somewhere other than C:/SFML, pass the path at configure time:
cmake .. -G Ninja -DSFML_DIR="D:/libs/SFML/lib/cmake/SFML"- Install Inno Setup
- Build the game first (see Build Steps above)
- Open
installer/happybird.issin Inno Setup Compiler - Compile (Ctrl+F9) — outputs
dist/HappyBirdSetup.exe
The installer includes a setup wizard, installs to Program Files, creates Start Menu and optional Desktop shortcuts, and includes an uninstaller.
The install script handles everything automatically: installs dependencies, builds SFML 3 from source if needed, builds HappyBird, and installs it system-wide.
git clone https://github.com/pideltajah/HappyBird.git
cd HappyBird
./installer/install.sh
happybird # run from anywhereTo uninstall:
./installer/uninstall.sh