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.

Understanding Box2D kinematic bodies

Emanuele Feronato Actionscript 3, Box2D, Flash

So you are used to work with Box2D and know everything about body types, such as static bodies and dynamic bodies… why nobody talks about kinematic bodies?

I think kinematic bodies are great to do some tasks, but first let me briefly explain the difference among body types.

A dynamic body is a body which is affected by world forces and react to collisions. And you already met a million of them.

A static body is a body which isn’t affected by world forces it does not react to collisions. It can’t be moved. Fullstop.

A kinematic body is an hybrid body which is not affected by forces and collisions like a static body but can moved with a linear velocity like a dynamic body.

So I made this little, commented script where dynamic spheres fall down at every second in a world full of moving kinematic bodies. The effect is unique and can be used in some games.

This is the result:

Also look how debug draw shows kinematic bodies.

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 7

  1. Chris

    Wow, seriously!?

    I was going to introduce a game mechanic similar to this in my current game- was thinking about making the bodies I didn’t want affected by the others just incredibly massive, but was worried about the low mass objects going nuts when hit.

    This will help a lot, thanks!

    I am planning to go through all your box2d tutorials soon, since a lot of the stuff you’ve talked about can be combined into nice, unique mechanics.

    Have you ever thought of having a page with all your box2d AS3 tutorials listed on it?

  2. Post
    Author
  3. Pingback: Nape?????? - Tomyail?????

  4. Pingback: Introduction pratique aux simulations physiques avec box2dweb | Blog de Jean-Pierre GARNIER

  5. Pingback: STEP 3 – Game Physics | Fighting Kitten

Leave a Reply

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