This is a complete Fifteen-like puzzle game. As you probably already know, Fifteen is a tile based game where these are placed randomly over a square board.
The player’s goal is to restore the initial configuration moving the tiles next to the empty cell.
Game source code is fully commented and gives to the programmer the opportunity to configure a lot of aspects, such as:
- The board’s size, not only in terms of width and height pixels, but also the number of rows and columns, giving the opportunity to create new challenging games. - The background image of the board. - The texture image used to create sub-regions for tiles. - Color and alpha values for both board and tiles. - Board shadow to obtain very impressive results. - Number labels on each tile, with custom font and color. - Animations duration. - Callbacks for every game event (Board solved, tile touches, tile swipes and others).
Each setting is structured to be applied anytime during the play. I added also some useful helper functions to manipulate images, so it becomes very easy, for example, to resize the tile’s texture and align it to the board width or height.
Game uses iOS storyboards and consists of two views and it is targeted for both iPhone and iPad with classic and retina displays.