As a first step of establishing the client-server comm protocols,
A good first step is to first see all players in the map.
This requires to implement a custom Room class in the server that saves the state of the game,
Which holds the player's state.
There are build in mechanisms that handle synchronising state between clients, so I suggest reading the documentation on the Colyseus site.
The data that is crucial for the initial implementation is:
Position - X, Y and Z
Rotation - I guess that only the Y axis is crucial, but w/e you can send is good. We want to know what direction the players are looking at.
This requires coordination with the person implementing the client side - so watch out for that.
As a first step of establishing the client-server comm protocols, A good first step is to first see all players in the map.
This requires to implement a custom
Room
class in the server that saves the state of the game, Which holds the player's state. There are build in mechanisms that handle synchronising state between clients, so I suggest reading the documentation on the Colyseus site.The data that is crucial for the initial implementation is:
This requires coordination with the person implementing the client side - so watch out for that.