Video game based on SFML, written in CPP.
Description • Implementation • Dependencies • Installing And Executing • Author
The purpose of the game is to fly as high as you can. The bird is controlled by the LEFT and RIGHT or A and D keys on the keyboard. As long as you fly higher, the gap between the pipes and the space between each pair of pipes is getting smaller, what makes the game harder.
The program contains 3 main categories:
- CollisionRelated - Mooving objects who needs to be detected for collision.
- Gameability - Responsible for the game's control flow and GUI.
- SpriteRelated - Sprite objects displayd to the screen.
The development was OOP-driven, using concepts such as polymorphism, encapsulation, design patterns, etc.
I used SFML version 2.5.1 using <SFML/Graphics.hpp> library. The pipes are created randomly (I used srand() from cstdlib.h and rand() from random.h). Further information about the design and code can be found in the documentation.
To clone and run this application, you can use Git. From your command line:
# Clone this repository.
$ git clone https://github.com/TalMizrahii/FLY-HIGH-game
# Go into the repository.
$ cd FLY-HIGH-game
# Enter the release folder into the repository.
$ cd FlyHigh release
# Run the program
$ FlyHigh