"can we make a standalone node-webkit (or browser) build and use it only for sending and receiving infos?"
It can be the same C2 project, with significantly different event sheets, depending on being the host or a peer ; then you can ensure your instance is the host, by having it join the session/room first using the Scirra signalling service.
Your "host" events would :
- interface with the database, to read/write centralised data
- receive inputs from peers
- run critical gameplay logic
- broadcast updates to all peers
The peers "just" send user inputs, display the world based on the host updates, and run non-critical logic (visual effects, animations, etc.)
Bandwidth issues remain though, and you still need your host on a box with a big pipe if you need to handle lots of peers and data.
Do you think i can make the server outside of the actual game? A different project