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 Prototype of the Iromeku game engine made with Phaser

Emanuele Feronato Game design, HTML5, Javascript, Phaser

A couple of years ago I showed you an AS3 prototype of the Iromeku game engine.

In the original game you have a game panel of a few colored squares and, using color affecting tiles, your objective is to change your panel to match that of the target.

The whole development theory and process is explained in the original post, so let’s jump straight to the point and see what you are going to do using Phaser framework in less than 50 lines of code:

Dragging tiles you will change tile values, according to this rule: tile value is given by its initial value plus the sum of all tiles above it. Playing with overlaps you can get some interesting cascade sequence of numbers.

Here is the script:

It could be optmized above all in update function since it constantly updates tile values even when there’s no user input. Working on drag events you can update tile values only when a tile is actually moved.

I should have done it but I wanted to keep the code under 50 lines to show you how easy is to do this kind of stuff with Phaser.

Download the source code and if you optimize it in any way, send me your work and I’ll be happy to publish in the blog.

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.

Leave a Reply

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