A framework that makes it easier to use the Box2d / Box2dweb physics engine in JavaScript, with mouse and multitouch events support.
JavaScript
Clone or download
Pull request Compare This branch is 127 commits ahead, 7 commits behind incompl:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demos
test
.gitignore
Box2dWeb-2.1.a.3.js
Box2dWeb-2.1.a.3.min.js
LICENSE
README.md
SoftLogger.js
boxbox.js
boxbox.min.js
grunt.js
notes.txt
package.json
updoc.html
updoc.topheman.html
updoc.topheman.tpl

README.md

boxboxevents

A framework that makes it easier to use the Box2d / Box2dweb physics engine in JavaScript, with mouse and multitouch events support.

##About boxboxevents

It is a fork of boxbox, originally created at Bocoup by Greg Smith, based on the Box2dWeb physics engine.

I needed an abstract layer to Box2dWeb to simplify the manipulation of physics objects to create some html5/js game. I was going to make my own, but after some research, I found boxbox and decided to fork it and add all the mouse/multitouch events interraction layer you always need for games such as angry birds.

Feel free to use it to create your own games, currently, the version is stable, works on chrome, firefox, safari, ie9+, as well on desktop and mobile device (sorry, for the moment, it shouldn't be working on the windows phones that only support pointer events - not touchstart/move/end).

I'm still working on it, to improve the code and maybe if you have some relevent features, don't hesitate to make suggestions.

Tophe

boxboxevents

PS : This project comes with a package.json file so that you can run : npm install

It will install the correct versions of :

  • grunt : the task manager (takes charge of minification, test, lint ...)
  • updoc : creates the documentation from the comments in the code

You should have to run npm install -g grunt-cli updoc to be able to use them via this type of shortcut :

  • grunt min, grunt lint ...
  • updoc boxbox.js updoc.topheman.html updoc.topheman.tpl