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.

Flash math game in less than 2KB

Emanuele Feronato Actionscript 3, Flash, Game design

Sometimes I make some experiments about fitting complete games into a ridiculously small amount of space.

I already published a complete Flash Sokoban game in less than 2KB and a complete Bejeweled game in less than 2KB, this time I want to show you an original math game concept made in less than 2KB (well, actually exactly 2KB).

The game is similar to Globez, you must draw a path with the mouse to select circles. Every circle has a number in it, and the sum of all selected circles must match one of the shrinking circles on the right. Once a circle on the right becomes too small, it’s game over.

I managed to include backtracking, a “not that flat” scoring system and a level progression. Unfortunately the game has no “Play again” button but all in all we are talking about a 2KB game.

Here is the game, I am curious to know your best score:

And here is the script, probably there are still some bytes to save:

I was able to save some space by replacing Point type with an Object with x and y variables.

A full version of the game with some more features is due in some days.

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 18

  1. Wadeck

    You can save kb from “;” and “public” no ? Dunno if you consider the spaces when you count the weight, but you can show a code beautified + code minified in order to reduce weight but keep readable code.

    1. Post
  2. Zimmerstein

    Hi there Emanuele! I keep getting your blog when googling for flash related stuff (really liked the monetization series (and I’m still damn curious how big was your deal with newgrounds)). Also I like all the tools you introduced to me!

    Only thing which could be better would be if your coding style used more spaces :D


  3. Pingback: Creating your own backgrounds with Adobe Photoshop Scripting - Emanuele Feronato

Leave a Reply

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