Skip to content

BlackyDrum/flappy-bird

Repository files navigation

Flappy Bird Clone in SFML + ImGui!

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.

ezgif com-video-to-gif (2)

Controls

Key Action
Space Jump
Enter Settings
Escape Pause

Prerequisites

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 the SFML_PATH variable to the root path of the SFML library:
set SFML_PATH=C:\path\to\sfml

Build using Makefile

If you have GNU Make installed on your system, you can use the included Makefile to build the project.

  1. Clone the repository to your local machine:
$ git clone https://github.com/BlackyDrum/flappy-bird.git
  1. Change to the cloned directory:
$ cd flappy-bird
  1. Use make to build the project. The executable flappy-bird will be generated in the root directory.
$ make
  1. 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.

Acknowledgements

About

Flappy-Bird in C++/SFML + ImGui

Resources

License

Stars

Watchers

Forks

Packages

No packages published