L
L
Lexxtor2022-03-01 11:39:59
Game development
Lexxtor, 2022-03-01 11:39:59

I'm making a multiplayer action game. Is it possible to carry out all calculations on the server, and only display data on the client or will it slow down?

A game like slither.io but harder and more moving objects.
I've seen games where, in the event of a communication outage, everything continued to move on the client, and when communication with the server was restored, the client synchronized, the players on the screen moved to the actual places, from those places where they got by inertia when the connection was broken.

In general, if the browser receives the coordinates of all objects 5-10 times per second via WebSocket, then nothing will slow down and lag?

I want snakes to turn their heads, to be able to bite and stop, to cling to other snakes with their teeth.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
taktik, 2022-03-01
@taktik

Can. Phrases for googling:

  • authoritarian game server
  • lag compensation in multiplayer
  • replication in multiplayer

S
Satisfied IT, 2022-03-01
specialist @borisdenis

Not only possible, but also necessary, otherwise it's a huge hole for cheaters, because no one will stop me from sending the calculation results I need to the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question