Flappy bird clone in C++ using the graphics library SFML.
Flappy Bird is an arcade-style game in which the player controls the bird Faby, which moves persistently to the right.
The player is tasked with navigating Faby through pairs of pipes that have equally sized gaps placed at random heights.
Faby automatically descends and only ascends when the player taps space or click mouse.
Each successful pass through a pair of pipes awards the player one point.
Colliding with a pipe or the ground ends the gameplay. During the game over screen
-
First install SFML :
sudo apt-get install libsfml-dev
-
Then execute the following commands:
git clone https://github.com/SalmaAlassal/FlappyBird
cd FlappyBird && rm -rf FlappyBird-Win && cd FlappyBird-Linux
g++ main.cpp -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio
./a.out
-
Open cmd.exe then execute the following commands :
cd C:\Users\Username\Downloads
Change the username to your own
git clone https://github.com/SalmaAlassal/FlappyBird
cd FlappyBird && rmdir /s FlappyBird-Linux
-
Execute Flappy Bird.exe in FlappyBird-Win folder then enjoy your time.
-
Start the game. Tap the arrow to start. Tap the screen again to allow your bird to fly and to start the game.
-
Stay in the middle of screen until the first set of pipes appears. Measure your tap heights to go between the two pipes.
-
Stay in the middle of the pipes. This is the main objective of the game. If you hit a pipe or the ground, the game ends.
The bird Faby will win the game if she successful pass through 100 pipes.
press the ESC key.
press the p key.
Main menu |
---|
Credits |
---|
HighScore |
---|
Get Ready |
---|
Get Ready |
---|
Pasue |
---|
Game Over |
---|
Winner |
---|
- Salma Ayman
- Suhail Abdel-All
- Abdelrahman Khatab
- Abdelrhman Sayed
- Ahmed Nasereldeen
- Mohamed Mobark