FlappyBird Game created with c++ and SFML
Flappy Bird is a mobile game developed by Vietnamese video game artist and programmer Dong Nguyen, under his game development company Gears. The game is a side-scroller where the player controls a bird, attempting to fly between columns of green pipes without hitting them. Nguyen created the game over the period of several days, using a bird protagonist that he had designed for a cancelled game in 2012.
This project is a recreation of the original Flappy Bird game.
For the moment it only runs in Linux, installing the SFML library.
By default, the Makefile uses G++ compiler, but you can change the variable CXX
.
You will need to use CMake min version 3.28.
- Create
build
folder in the root directory of the project. - Then execute
cmake ..
from the build folder That will create the make file, download the SFML dependencies and copy the resources folder to the build one. - Finally execute
cmake --build .
To compile the project. - Execute the program by doing
./flappy_bird
The main goal of the game is to guide the bird through the pipes that appear from right to left, avoiding the collision with them. The more pipes it pass, the more points the player acquires. The game ends when the bird collides with the ground or with any pipe.
A mouse or a touchpad are required in order to play.
- Left mouse button: makes the bird "jump" a certain vertical distance.