This is a C++ project that implements a clone of the popular game Flappy Bird using SFML.
You have the option to modify some of the game options/assets such as flying speed, gravity, skins, etc. with ImGui.
Key | Action |
Space | Jump |
Enter | Settings |
Escape | Pause |
Before running the Flappy Bird clone, make sure you have the following installed on your system:
- SFML library: You can download SFML from the official website (https://www.sfml-dev.org/) and follow the installation instructions for your operating system, for example on Debian-based systems:
$ sudo apt-get install libsfml-dev
- OpenGL library: You can install the library with the following command:
$ sudo apt-get install libglu1-mesa-dev mesa-common-dev
- A C++ compiler, e.g.
GCC
$ sudo apt-get install build-essential
- On
Windows
, make sure to set theSFML_PATH
variable to the root path of the SFML library:
set SFML_PATH=C:\path\to\sfml
If you have GNU Make
installed on your system, you can use the included Makefile
to build the project.
- Clone the repository to your local machine:
$ git clone https://github.com/BlackyDrum/flappy-bird.git
- Change to the cloned directory:
$ cd flappy-bird
- Use make to build the project. The executable
flappy-bird
will be generated in the root directory.
$ make
- Run the binary file (or double click the .exe on Windows):
$ ./flappy-bird
Note: If you encounter any problems on Windows trying to run flappy-bird.exe
, make sure to put the .dll in the same directory as the flappy-bird.exe
.
You can find the .dll files in the official SFML bin
folder.
- SFML: Simple and Fast Multimedia Library (https://www.sfml-dev.org/)
- Flappy Bird: Original game developed by Dong Nguyen (https://en.wikipedia.org/wiki/Flappy_Bird)
- Assets: Sounds and textures (https://github.com/samuelcust/flappy-bird-assets)