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.

The magic of compound objects with Box2D – HTML5 version powered by Phaser

Emanuele Feronato Box2D, Game design, HTML5, Javascript, Phaser

Back in 2008 I blogged about the magic of compound objects with Box2D to create complex shapes, and eventually built a game upon this concept, called MazeRoll.

Now it’s time to do the same thing with Phaser, building a maze in a single body.

The maze is built with the same script used in Pure JavaScript perfect tile maze generation – with a bit of magic thanks to Phaser, have a look at it:

Try to drag the mouse, you will see it’s a single body made with more fixtures.

Everything runs around the creation of a body with no fixtures – think about it as an empty body – with rectangular fixtures added to it at runtime with addRectangle method.

addRectangle(width, height, offsetX, offsetY, rotation)

Adds a Rectangle fixture to a Body. You can control the offset from the center of the body and the rotation. It will use the World friction, restitution and density by default.

This is the source code.

And this is how you can create compound objects with Box2D and Phaser. Next time, I will port my MazeRoll game in HTML5, meanwhile download the source code.

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 1

Leave a Reply

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