🤼♀️Two Players
How two player matches work
Two player matches let you find opponents and sync data between the two devices. Once you create a match, each player can get and update the match's game state. This is serialized for you into a custom class. Prizes can be awarded automatically to winners (configure on your dashboard).
⬆️ Create a match
Create a match with a random opponent
Create a match with a friend (see ViewOptions)
Subscribe to the delegate to be notified of new matches from the matchmaker UI
⬇️ Get match list
Get this player's matches
⬇️ Get a specific match
Get a match and deserialize the current state. CustomState
can be any class
⬆️ Update a match
Update a match with MyNewGameState
of type CustomState
⬆️ End a match
End the match with id MatchId
. If you pass Score
and LeaderboardId
(optional), the score will be reported to the leaderboard and the winner of the match will be awarded a prize, if applicable.
Last updated