[PIGMI] Documentation review

Nick Lowe nick at onetwenty.org
Tue Jan 25 02:38:42 PST 2011


Basic use with box2djs is pretty straightforward:

http://onetwenty.org/upload/soupbox/

:)

- Nick

On Sun, 2011-01-23 at 15:56 +0800, Doug wrote:
> Neat. Are you after feedback about the documentation or the library?
> The documentation looks great, go javadocs! :)
> 
> 
> Things to think about with the library:
> 
> 
> - How would you integrate this with one of the js Box2D
> implementations?
> (need, effectively, a method / callback to pull 2d position, rotation
> state for every entity from the box2d core every frame; this applies
> with any other physics engine you slot in too; is there a way to do
> this per Entity? It wasn't clear to me)
> 
> 
> - Along these lines, since you get the canvas reference in the draw()
> method, you can rotate your sprites arbitrarily using
> c.setTransform(), but once you do, your axis aligned collide code
> doesn't work any more, because the bounding box isn't axis aligned any
> more. That's fine, because Box2D handles collision detection; but how
> would you plug that into this?
> 
> 
> - Your network model doesn't seem to support long polling connections.
> Have you considered depending on socket.io?
> 
> 
> - Looks like there aren't any obvious external dependencies; have you
> considered looking into see if this would run under node.js? I believe
> there was a node.js canvas implementation floating around somewhere..?
> 
> 
> If you could make this a library that ran equally as a desktop app
> using node.js, or a browser app depending on the situation, and think
> you'd get a lot of interest in it...
> 
> 
> ~
> Doug.





More information about the pigmi-pigmi.org mailing list