Hi everyone! Here's my problem:
I'm doing some multiplayer-related tests (I know, I know, realtime multiplayer in the browser is still a bitch, but that's not what I'm here to ask), and I've come to a point in wich I'm doubting in how to implement rooms in my game. You see, the rooms I'm talking about would be completely separated, except for the occasional opening door, so for networking purposes it is simpler to treat the syncronization of the players in each room separately, but now for the actual simulations taking place within the box2d (I'm still deciding over box2dweb and box2djs) on the server (using node.js) I'm not sure if it'd be more convenient (performance-wise) to simulate each room separately in it's own box2d world or to simply put them all in the same world. Note that when I say doors you would be better off thinking portals, rooms connected by a "door" won't neccesairly be adjacent nor regularly shaped and sized.
Thanks!
I'm doing some multiplayer-related tests (I know, I know, realtime multiplayer in the browser is still a bitch, but that's not what I'm here to ask), and I've come to a point in wich I'm doubting in how to implement rooms in my game. You see, the rooms I'm talking about would be completely separated, except for the occasional opening door, so for networking purposes it is simpler to treat the syncronization of the players in each room separately, but now for the actual simulations taking place within the box2d (I'm still deciding over box2dweb and box2djs) on the server (using node.js) I'm not sure if it'd be more convenient (performance-wise) to simulate each room separately in it's own box2d world or to simply put them all in the same world. Note that when I say doors you would be better off thinking portals, rooms connected by a "door" won't neccesairly be adjacent nor regularly shaped and sized.
Thanks!