#Photon for a card game help

1 messages · Page 1 of 1 (latest)

polar crane
#

So basically the entire offline game is complete, and I've basically got this logic going on:

The CardDB contains all of the cards available in the form of a list
Deck contains a list 'deck', which represents the pack of cards that will be used in the actual game (Alongside a 'shuffleddeck' which is self explanatory)
CardManager contains 2 players, which players have another list of cards representing their "hand"
Player and Enemy Controllers basically allow the players to do stuff with those cards, and contain them as gameobjects to appear on the screen, as well as stores any info that the manager will use to carry on with the game (whereas the players store the cards themselves)

#

The bottom part of the screen represents the player's hand, where the cards from the player's hand (list) are instantiated, top left is a drop zone where basically whatever card you put in there becomes the 'selected card' to which you can press 'confirm' to secure our choice and carry on or 'reset' to remove the card and pick another one
Top right represents the enemy area, where the opponent's chosen card will appear after their turn.
Once both players have chosen a card, a 'compare' button appears that declares the winner