“1+2=3” HTML5 game made with Phaser updated and commented

A couple of years ago I published a 100 lines html5 prototype of 1+2=3 game using Phaser.

Some months later, I picked uo the prototype, added some kind of story and 132 levels (yes, 132) and released Matt Vs Math, which was sponsored by Softgames.

The prototype remained uncommented and some readers asked me to add comments mostly to know how I was able to generate random questions with increasing difficulty.

Today, I am rewriting the original prototype updated to latest Phaser CE version (2.8.5) and with the game able to restart once it’s game over.

This is the game:

Click or touch the button with 1, 2 or 3 according to the expression shown. What’s your best score? If you have a mobile device, you can play it directly at this link.

And finally this is the source code, commented and updated as you asked:

If you want to play with the source code, download the project and turn it into a complete game.

  • worm1

    Thx a lot Emanuele!

    Two years ago, i realized an adaptation in as3 on facebook of your game :

    https://apps.facebook.com/mathematons

    And thank you for all your projects, I read your blog for several years and thanks to you I could realize my dream, to be developer of video games !