简体   繁体   中英

Possible to create 3D multiplayer game server in nodeJS

Is it possible to create a game server with node JS for a 3D windows C++ game?

Is there a way to create the world server of for the game, login, character server is fairly easy to do and is quite possible with node.

But when it comes to the Map server, where it calculates object collision and character positions. How is this properly done? and can it be done with node JS?

It can be done the same way as any other multiplayer server would be done, simply with different (and maybe more complex) game logics.

You need to implement the 3D physics of the world (that is: object collision logics, character position etc.) both inside the Node.js server and inside the client, and make them communicate via UDP or TCP sockets.

As for the multiplayer communication techniques, I'd recommend you to read this guide: http://gafferongames.com/networking-for-game-programmers/

Regarding physics over network, you should take a look a this, always from the same author: http://gafferongames.com/game-physics/networked-physics/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM