Create HTML5 Vertical Endless Runner cross platform games

Using Phaser framework and other FREE software
Endless runner games are gaining more and more popularity and they are really easy to code.
I will take you by hand through the creation of a complete HTML5 vertical endless runner cross platform game with a lot of features and room for customization.
100 pages + 31 source code examples with a free update to come in a few days.

HTML5 swipe controlled Sokoban game made with Phaser featuring unlimited undos – solving and advancing through levels

Emanuele Feronato Game design, HTML5, Javascript, Phaser

In this new step of the Sokoban series I am showing you how to check if the player solved a level, and how to advance through levels.

The concept is very simple: a level is solved when there aren’t crates outside target spots, which means when the level array does not have an item with CRATE value in it.

Have a look at the game:

Swipe to move the player, double click/tap to undo last move. If you have a mobile device, you can play the game at this link.

The first level is ridiculously easy to solve, just to show you how to check for a level to be solved and advance through levels.

This is the source code, with new or modified lines highlighted. I did not highlight each level changed to level[this.currentLevel] not to create a visual mess, but you should keep in mind level was transformed from a two-dimensional array into a three-dimensional array.

Next time I will add more levels and a level selection screen, meanwhile download the source code.

Stay up to date
Follow me on the social networks and never miss a post.

Official Emanuele Feronato Facebook page

Official Emanuele Feronato Twitter account

From null to full HTML5 cross platform game

I will take you by hand from the bare bones of JavaScript programming through the creation of a full cross platform HTML5 game, with detailed explainations and source code.

If you don't know where to start, then From null to full HTML5 cross platform game is the book for you.

Comments 2

  1. Mike Hetman

    What a great learning tool thanks! I see you have removed the arrow key functionality. :( I am trying to add it back for desktop compatibility but having trouble. Do you have any pointers? Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *