Monday, June 27, 2022
HomeGame Developmentc# - Recreation networking with physics completely different shopper and server languages

c# – Recreation networking with physics completely different shopper and server languages


We’re at the moment having solely “flip primarily based” multiplayer video games in our occasion sport foyer system. Now we thought-about so as to add realtime multiplayer video games as nicely, for instance golf in 3D. Our present applied sciences embrace:

  • Server: C# Server, Customized Internet Socket Server logic
  • Consumer: Browser with net sockets, Three.js for 3D rendering

By having a sport like golf, it could additionally contain physics primarily based gameplay. And we need to maintain the server as authority if attainable. We all know that for a easy expertise we’d like Consumer prediction, reconciliation and interpolation. That is the place it will get difficult for us proper now.

For an excellent prediction or any prediction in any respect actually, we would wish a physics engine that runs kinda similiar on the JavaScript shopper in addition to on the C# Server backend. After looking for a bit we have now not discovered any which are ported to each C# and JS.

We additionally thought-about to sacrifice the server authority for that form of sport and make one of many purchasers the authority; subsequently the server would simply act as a proxy for them. Would that be a sound technique to go? This may additionally save server assets however purchasers which are authorities might cheat.

How can we implement these physics options on this mismatched client-server surroundings?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments