1
SFML projects / Re: SFML with JavaScript, Box2D...
« on: November 10, 2015, 02:17:14 pm »And starting with ECMAScript2015 the language is indeed getting better.
Duktape is V5 with some bits of V6...
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
And starting with ECMAScript2015 the language is indeed getting better.
function initialise()
{
box = GameObject.textureObject(1); // create a sprite with texture index 1
box.setOrigin(16, 16); // important for Box2D physics
box.setPosition(100, 100); // set the position
Physics.createDynamicBox(box, { density: 1, friction: 0.6 });
}