How can a canvas know which player is active?
I’ve created a 2D card game for a solo player against robot opponents.
I want to change it so all players see their own hands, and have their own view of the tabletop and the previously played cards.
I created a lobby, but when the game starts, the players see completely different canvases with differently shuffled cards.
A canvas shouldn’t have states. Your player manager / component should be controlling the state of what canvas they have.
Thanks for the answer. Maybe I’m asking the wrong question. What connects a player with a canvas? In this case the player objects don’t need to appear on the canvas, but the human players need to see the same things on the tabletop (except for their own hands.)