box2d.js icon indicating copy to clipboard operation
box2d.js copied to clipboard

please,can support node.js?

Open bbzz7 opened this issue 9 years ago • 1 comments

please,can support node.js? The compressed file size is also too big~~

bbzz7 avatar Apr 14 '15 11:04 bbzz7

There is a Node module for using Google Closure projects in Node.js.

$ npm install closure
// set up closure
global.CLOSURE_BASE_PATH = ['google','closure-library','closure','goog',''].join(require('path').sep);
require('closure').Closure(global);

// load dependencies
goog.loadScript('Box2D/Build/Box2D/box2d.dep.js');

goog.require('box2d');

console.log(box2d.b2_version);

flyover avatar Apr 14 '15 22:04 flyover