How to build a puzzle game utilizing OOP techniques
As every one of the flash games you might be acquainted with, this puzzle game has been designed using a simple concept, which is matching a specific number of colorations. In the left side of the game square, you will find the order colors has to be put into. As an illustration, if you have a red square in the left side it indicates that you need to put in the fist line only red squares. Additionally, if you find on the 2nd line a blue one, following the red square, it indicates you must only add blue squares in the second line, and so forth.This game’s judgement is a very simple one, but it could keep you in guard, and will excite your interest and your capability to concentration. In addition, there is an empty square, that enables you to move the coloured squares, so that you can position them in the correct combo. Although switching is not animated, the colored squares are incredibly close to each other, that they look like they are changing.Yet another feature of the game is the timer. You ought to be as prompt as you can because it will only discontinue when all squares are in the proper area. Moreover, as in all flash games, this puzzle game contains four classes: main class, the matrix, logic issues and, finally, the box.Moreover creating the structures of the other about three classes, the main class has to manage both the timer and the text field. The box class represents a single square, it receives a color code parameter in addition to a unique coordinate, in order to supply information about the position of a certain color in a specific line. In addition, the matrix class is the one responsible to set up all boxes, and the logic class, you might guess, is the mind of the game.