Re:Make a simple HTML5 game using Box2d in JavaScript
by antirez on Tuesday December 18, 2012 @11:29AM
(#4938187)
This example is using box2d for something that can be implemented with very simple code dropping this important dependency IMHO. Box2d is a great fit when real 2D physics simulation is needed, but for apples falling at constant speed and jumps, it's not worth it.
[ Parent
| on HN ]
Re:Make a simple HTML5 game using Box2d in JavaScript
by DanielRibeiro on Tuesday December 18, 2012 @02:03PM
(#4938958)
There is also this simple game using box2d in both Clojurescript[1] and Coffeescript[2], which can also help those starting with it. I wrote a little abut it[3].
[1] http://danielribeiro.github.com/ClojureCoffeeScriptGame/
[2] http://danielribeiro.github.com/ClojureCoffeeScriptGame/cloj...
[3] http://metaphysicaldeveloper.wordpress.com/2011/08/28/clojur...
Re:Make a simple HTML5 game using Box2d in JavaScript
by 1qaz2wsx3edc on Tuesday December 18, 2012 @01:13PM
(#4938705)
This example also has bugs. 1. Rapidly pressing up executes multiple jumps. 2. You can climb up the side of a block/group or just get stuck on it.
Also the jump feels off.
Re:Make a simple HTML5 game using Box2d in JavaScript
by silv3r_m00n on Tuesday December 18, 2012 @10:56PM
(#4941061)
the climbing on the side of the block is actually default box2d behaviour with bodies having friction. to make it slide off the side needed a bit of complex construction which i avoided to keep the tutorial simple.