Skip to content

topheman/boxbox

 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%