30 Jan

Ashley’s Tiles using Phaser

I created the game based on the concept set out here, and the storyboard here. I used Phaser, an extremely popular “desktop and mobile HTML5 game framework”. I highly recommend it. I could have used just HTML, Javascript and CSS but it did end up saving me time in the long run. I really didn’t use it to it’s full potential, as my game was so simple and didn’t require using many of Phaser’s amazing features, but nevertheless it will definitely be a go-to framework next time I want to create a game.

The trickiest bit was writing the checks for the tile matches. To recap, once all the tiles have moved, the aim was to check if there were any matches of three tiles or more (not diagonally, but they didn’t have to be in straight lines as ‘L’ shapes are permitted). For a long time this function would cause the game to error. It turns out, the tiles were being checked before the animation was complete, and so empty tiles were being checked and causing a mess. Once the problem was identified, it was an easy fix.

I’ll put the game up on GitHub, but for now, the finished game can be played here.

Screen Shot 2016-01-06 at 23.42.18

Ashley’s Tiles – feel free to let me know what you think.

Please follow and like:
29 Nov

Games design


Congratulations to those who have managed to get the 2048 tile!

Some have got the 2048 tile, such as Ironyca.

Everything begins with research.

One of my favourite simple, single-player games to pop up over the last few years is 2048, a tile-based game developed by Gabriele Cirulli. The aim is to slide the numbered tiles across the grid, combining matching ones in an attempt to create a tile with the number 2048.

It is a very addictive game, with a lot of potential for variation. It has the makings of a classic, very much like Tetris with the blocks and simple moves. With ones such as these, as soon as the game is over the player automatically hits restart.

I’ve spent my fair share of time playing Tetris. I’ve made it to level 22, at the games highest speed. Even with single-player games, there’s a huge competitive element.

Using this as inspiration, I came up with my own concept.

My Game Concept

  • Board begins with a random selection of colour blocks.
  • The size of the board (initially a 4×4 grid) will be determined in testing.
  • Player can only swipe up, down, left or right.
  • When the player moves, all the blocks move in that direction as far as possible within the constraints of the grid.
  • If three or more blocks of the same colour join, they all disappear.
  • On each turn, another block appears (colour generated at random).
  • There are levels of difficulty, determined by how many different colours at play. Easiest is 2 colours, up until it becomes impossible.
  • After every 10 moves, if the game is still in play, the level is increased (another colour added).
  • Aim of the game is to get the highest possible score.
  • 1 point for every block cleared in level 1, 2 points in level 2 etc.
  • Game is lost when the board fills up.








Please follow and like: