UNPKG

box2dweb-commonjs

Version:

Box2dweb as a Common JS module

17 lines (12 loc) 482 B
box2dweb-commonjs ================= [![web component logo](https://component.jit.su/component-badge.svg)](https://github.com/component/component) CommonJS version of Box2dWeb both for npm and component(1) The patch to support Node.js was prepared by [Christoph Schulz](http://code.google.com/p/box2dweb/issues/detail?id=22) Usage ------------ Both in component(1) or node.js just ```javascript var box2d = require('box2dweb-commonjs'); var world = new box2d.b2World(....) ```