Skip to content

TalMizrahii/FLY-HIGH-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


C++
FLY HIGH

Video game based on SFML, written in CPP.

DescriptionImplementationDependenciesInstalling And ExecutingAuthor

Description

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.

ezgif com-gif-maker (2)

Capture11

Capture

Implementation

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.

Dependencies

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.

Installing And Executing

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

Author