/flappybird

A clone of .GEARS' Flappy Bird in just over 1000 lines of C

Primary LanguageC

Flappy Bird

A clone of .GEARS' Flappy Bird in just over 1000 lines of C.

Preview

Checkout

A fresh one

git clone --recurse-submodules https://github.com/alxyng/flappybird.git

Existing one

git clone https://github.com/alxyng/flappybird.git
git submodule update --init --recursive

Build and run

macOS

brew install libxmp fluid-synth wavpack
cmake --preset Release
cmake --build --preset Release
./build/Release/flappybird

Debian/Linux

sudo apt-get install libxmp-dev libwavpack-dev libfluidsynth-dev fluidsynth
cmake --preset Release
cmake --build --preset Release
./build/Release/flappybird

iOS

The following has been tested on XCode 16.0.

From the root of the repo, apply the following patch to SDL_mixer:

(cd deps/SDL_mixer && git apply ../../SDL_mixer.patch)

Then open XCode, select a device and hit Run. You may have to set up signing if you haven't done so already.