emanueleferonato.com emanueleferonato.com

Endless physics random terrain with only a bunch of bodies for your HTML5 games using Phaser, Box2D by Planck.js and Simplify.js

The tutorial about the generation of a physics driven random terrain for your HTML5 games using Phaser, Box2D by Planck.js and Simplify.js has been quite successful, so I am going to show you how to generate an endless physics random terrain, using only a bunch of bodies. Actually, only a bunch of edges, since I am using Box2d edges to build the terrain, have a look: There is no interactivity: a terrain is generated slope by slope,...