I’m working on a new html5 multiplayer game. In the past I’ve gone about this with almost entirely custom written code.
My approach with my previous projects is to usually get something of a working client complete with a working game logic loop, and to basically completely reuse the game logic on the server side dump the client specific stuff, add my server specific funtionality and blammo: multiplayer game with an authoritative server. This was all done with custom code, socketio, and nodejs
Now with the Cocos2D-HTML5 I’ve got all sorts of nice toys built into the system. Like tile maps, physics engines and so on. I’m relying on some of those features in my logic loop, I need to either recreate them on the server side or make use of the existing libraries or someone’s already made a server side implementation.
How do people go about this with cocos2d in general? Or more helpful, with Cocos2d-html5 in particular? How likely is it that I will be able to simply take my logic loop (which doesn’t do anything with input or output, but acts entirely on processing), import the specific cocos libraries I’m using and run it in nodejs?