In it, i have implement candy crush game Using OOP concept.
I have first made a shape class. The shape class have three member of float, float, and int. The float variable are used to store the coordinate x, y value of a shape. To identity, a specific shape ID (int) is assigned to each variable. The getter and setter for the shape is provide to access them. Then I composited the shape class in a class Grid. All the functionality of the game are control in the grid class. for more domonstration of the design, See the class diagram Below.
- Download these files.
- Open folder in Terminal.
- Run:- libaries.sh [this is install all the required libaries].
- Run:- make [this will compile the game] .
- Run:- ./game [this will run the compile game]