First of all congrats for the work you done with the JS version, I like it so far.
I want to start working with the box2djs but I don’t see any example, how to link it with the cc.node objects, and how to implement the mechanics/collisions/movings etc.
Second question is about controller, I see that cocos2d uses a different aproach (on update the object you check if the key is pressed - and in the Layer with the functions onKeyDown, is like this in the only game I could find https://github.com/ShengxiangChen/MoonWarriors/blob/master/MoonWarriors/src/GameLayer.js ), I suspect update is based on fps/layer/tick update
But I see that there are some classes - cc.KeyboardDelegate() , dispatcher and handler, how can I use these ?
Global, what is the best standard to keep the global data, like player data, action history, other players data, etc, I use a regular global JS object or the framework provides us with a global singleton class like cc.director ?