Jump to content

Phaser 3 Multiplayer Card Game


selgkr
 Share

Recommended Posts

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

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...