danishgoel / box2dweb

Automatically exported from code.google.com/p/box2dweb
0 stars 0 forks source link

Nodejs module #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to use box2dweb as a nodejs module but the use of the window object 
is causing me some trouble. Also modifying Function.prototype doesnt look very 
promising in order to get it working along with nodejs or other js libs.

Original issue reported on code.google.com by joanroca...@gmail.com on 5 Apr 2011 at 4:40

GoogleCodeExporter commented 9 years ago

Original comment by Uli.He...@googlemail.com on 5 Apr 2011 at 4:59

GoogleCodeExporter commented 9 years ago

Original comment by Uli.He...@googlemail.com on 5 Apr 2011 at 8:11

GoogleCodeExporter commented 9 years ago
I'm sorry for the slow progress, but I'm changing a few other things, too.

Original comment by Uli.He...@googlemail.com on 8 Apr 2011 at 11:43

GoogleCodeExporter commented 9 years ago
No worries Uli.
What other things are you changing if I may ask?

Original comment by joanroca...@gmail.com on 8 Apr 2011 at 12:11

GoogleCodeExporter commented 9 years ago
this will be the commit-log. But there are some problems with the compiler 
output at the moment:

* removed references of static memeber-definitions from prototype
* moved flash helpers from a2j to Box2D object
* removed redundant definitions:
   * Vector_a2j_Number at the bottom
   * (global) m_drawFlags in b2DebugDraw constructor
   * flash.utils.Dictionary object definition
   * helpers: a2j.warn, trace, assert
* removed b2Broadphase and related classes (b2Proxy, b2OBB, b2Pair, 
b2PairManager),
   since it's not documented officially and broken anyway. It requires flash.utils.Dictionary which
   is very hard to implement in the compiler, except by overriding Object.prototype.valueOf() in order
   to return a unique id for each object.
* fixed issue #14
   * moved inherit-method from Function.prototype to Box2D
   * replaced definition-check of global vars (if(!window.globalVar) -> if(typeof(globalVar) !== "undefined"))
   * removed leading "window." for global var assignments

Original comment by Uli.He...@googlemail.com on 8 Apr 2011 at 3:28

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r26.

Original comment by `` on 9 Apr 2011 at 5:02