Answer the question
In order to leave comments, you need to log in
How to properly organize the creation of games for a platform with mini games?
I wrote a small platform for mini-games, on js and node js, working via websocket (for myself and for friends). The essence of the platform, the player enters, selects the game, creates a lobby. The second player joins him in the lobby, the countdown begins 10 9, and so on. If one of the players has not left, the game starts. The question is, I have a lobby object on the server, and it counts down, after the time has elapsed both on the server and on the client, the players should create and initialize objects called games. I’m a little not sure in what order this happens, I think so, from the beginning the game is created on the server, then it sends a request to the players and the game is created on the clients of the players, and only after that does it start? It's just that until it is created on the server, then on the clients it's not a lot of time.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question