selgkr Posted July 8, 2020 Share Posted July 8, 2020 I'm trying to create an online multiplayer card game. Since I'm a newbie I've been working offline using Socket.io and Phaser 3, but I'm struggling to figure out how to deal from the same deck of cards to each player. How do you manage a deck so that each player draws from the same one instead of creating a new one each time? Link to comment Share on other sites More sharing options...
Darko Posted July 9, 2020 Share Posted July 9, 2020 Hi ? What you need is to manage the deck in the server side as the only truth deck. Update server deck data on each player action (send player action to server) and update each player with server results (send all players the new deck). I hope this helps... Link to comment Share on other sites More sharing options...
Recommended Posts