Manage Multiplayer Matches
One of the neat things about Game Center and GameKit is that they include everything you need to set up and manage multiplayer games, well, almost everything—you need to supply the game data. However, before getting too deep into the game data, let’s cover the heart of turn-based matches: the GKTurnBasedMatch object.
The GKTurnBasedMatch object is what you use to implement a turn-based match. This object, which your game never creates directly, contains important information about the match. This object uses a store-and-forward approach to share your game’s match data between its match participants.
The GKTurnBasedMatch object has a few key properties:
-
participants: Holds information about the “players” participating ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access