Async authoritative turn-based multiplayer in scope for Colyseus?
kragil last edited by
I am new here:
Is Colyseus a good fit for a game where player1 can just start their turn and go offline, then another player can decide to pick up that game and play with player1 and go offline again. The turns could be fairly big (few MB maybe).
From what I have read it seems Colyseus is geared more towards real-time and games where people start at the same time, but it also says it would be very flexible. My fear is that Colyseus could hard to work with and that it would not scale well for this type of game. Am I right?
So would something like this be easy to implement in Colyseus, and what would the best practice be?
TeeTeeHaa last edited by
I really like Colyseus and use it for my games with synchronous gameplay. For the game you described, with asynchronous gameplay, I personally would not use Colyseus.
Small definition of terms to avoid misunderstandings:
"synchronous gameplay" means players who are online and playing see each other and can interact with each other instantly.
"asynchronous gameplay" means players go online and play independently from each other, comparable with physical board games with a turn order for players.
In this scenario any "event" is initiated by the game client and the game server only reacts to those. If this scenario must be extended because the game server wants to initiate an event, for example because one player wants to send a chat message to the another player who might currently be registered as "online", the simplest way would be to use long polling. A friend of mine currently makes an asynchronous game just like that and it is working really good, probably because of the simplicity of the used network technology.
Maybe an asynchronous game can even be made with Colyseus, but from what I know about Colyseus it is not a good fit.
kragil last edited by
Hey, thanks for your answer! After two weeks I just thought this community is not really helpful and looked elsewhere.
There is a lot of really useful information in your post. I will really take it to heart. I have come to a similar conclusion, will probably use my own REST server or a parse-server. Colyseus is not really useful for this kind of server, but they don't tell you that ;-)