Box2D "HTML5" demo

Post your tutorials and samples here.
abernier
Posts: 5
Joined: Tue Aug 21, 2012 5:57 pm
Contact:

Box2D "HTML5" demo

Postby abernier » Tue Aug 21, 2012 6:04 pm

Using the JavaScript Box2D port eg: box2dweb, I've set-up a sample demo using the Box2D's logo:
Image

All is pure HTML/CSS/JS and you can test it using your mouse: http://bl.ocks.org/3411189

Source code: https://gist.github.com/3411189

Just to share it with the community ;)

genbox
Posts: 69
Joined: Mon Jun 15, 2009 4:34 pm

Re: Box2D "HTML5" demo

Postby genbox » Fri Dec 28, 2012 8:37 pm

I guess you are using Google Chrome?
It does not work in Firefox or Internet Explorer.

Interesting experiment though.

abernier
Posts: 5
Joined: Tue Aug 21, 2012 5:57 pm
Contact:

Re: Box2D "HTML5" demo

Postby abernier » Thu Jan 23, 2014 4:47 pm

A bit more evolved, but always in pure HTML5 and mobile compatible (try it on your mobile, and tilt!): http://bl.ocks.org/abernier/raw/8561651/

Image

abernier
Posts: 5
Joined: Tue Aug 21, 2012 5:57 pm
Contact:

Re: Box2D "HTML5" demo

Postby abernier » Thu Feb 20, 2014 3:38 pm

Last one was just approved and published on Chrome Experiments: http://www.chromeexperiments.com/detail/box2d-mobile/ Don't hesitate to vote for ;)


Return to “Tutorials and Samples”



Who is online

Users browsing this forum: No registered users and 1 guest