27Jan

How to build a puzzle game utilizing OOP techniques

As all of the flash games that you are familiar with, this puzzle game has been created using a simple concept, which is matching a particular number of shades. In the left side of the game square, you will have the order colors needs to be put into. For instance, if you have a red square in the left side it indicates that you need to put in the fist line only red squares. Moreover, if you find on the second line a blue one, following your red square, it means make sure you only increase blue squares in the second line, and so forth.This game’s logic is a really simple one, but it will keep you in guard, and will stimulate your interest and your ability to target. In addition, there is an empty square, that allows you to move the coloured squares, so that you can put them in the proper blend. Although the switching is not animated, the colored squares are incredibly close to each other, that they seem to be they are changing.One more feature of the game is the timer. You need to be as fast as possible because it will simply cease when all squares are in the proper put. Moreover, as in all flash games, this puzzle game contains four classes: main class, the matrix, reasoning problems and, last but not least, the box.Furthermore developing the structures of the other 3 classes, the main class needs to manage both the timer and the text message field. The box class represents a single square, it receives a color code parameter as well as a distinct coordinate, in order to offer details about the position of a specific color in a particular line. Moreover, the matrix class is the one liable to set up all boxes, and the logic class, as you might guess, is the brain of the game.

Comments Off add comment

Friday, January 27th, 2012 at 7:50 pm and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.