Answer the question
In order to leave comments, you need to log in
How to implement a realtime game server?
I have some experience in non-realtime browser based multiplayer games in the past (php & flash), behind a couple of small single player games for mobile phones implemented in Unity, recently mastered node.js.
And now I really want to create a real-time multiplayer toy. Something roomy for a small number of players in one place, with a top view like in Diablo, tap-to-move movement, close-range attacks, archery / crossbow / etc and casting magic attacks that can fly along a given trajectory, reacting to collisions on the way, or activated immediately at a given point, applying damage in a given radius. Also, the calculation of physics will be needed to prevent the characters from moving to one point, i.e. they must have some dimensions, thanks to which they must be kept at some distance from each other.
That is, the implementation of basic physics in real time is necessary. Most likely, 2d physics on a flat map will be enough. And a lot of questions:
Answer the question
In order to leave comments, you need to log in
As a result, I look towards various implementations of Photon: PUN, Bolt, Quantum. It seems that the best way to sync between players is to use one of these services, which takes care of all the issues of synchronization and accounting for network delays. And on your server, implement the initialization of the player's state when loading the game and issues of his pumping and inventory.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question