Multiplayer Game Development

Status
Not open for further replies.

Adonn

New Member
Mar 25, 2011
27
4
Okay, so I've started a new HTML5/Javascript game. I want it to be like a space combat game (maybe like EVE Online or something), where you fly around in space and shoot enemies or trade goods among other things. I have basic parts of the client-side core done. It uses WebGL rendering to show a (very) simple 3D model I put together in Blender, through a library called Threejs. I also started a nodejs server script (although I haven't gotten far with it)

I just have a question for people who have some experience with the server sided portion of this project.

What would be the proper way to send and receive the positions of ships? I thought about absolute coordinates, but then again if somebody tried to log them, it might be kinda dumb to use that standard as they could find where other people are when they shouldn't or whatever. That leaves me with relative positions, so when a ship updates, the server just sends the "offset" to all other connected players. I was wondering which method would be more efficient and what (besides the mentioned) advantages and disadvantages occur with either one. If you have a more efficient way of doing this, please let me know.

Thanks!
Adonn
 
Status
Not open for further replies.

Users who are viewing this thread

Top