iDevGames Forums
Network game: how to handle turn game (like ruzzle management) - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Design (/forum-5.html)
+--- Thread: Network game: how to handle turn game (like ruzzle management) (/thread-10687.html)



Network game: how to handle turn game (like ruzzle management) - sefiroths - Jul 29, 2013 08:22 AM

i'm wondering how to handle matches like do ruzzle:
one player can play the game and the other can play it too, while all two player haven't finished, i can't go to the second...
GKTurnBasedMatch can't be because only one player at a time can make his move...
should i have a separate server that stores the game, or i can use some other apple api? thanks


RE: Network game: how to handle turn game (like ruzzle management) - SethWillits - Jul 29, 2013 09:07 AM

Instead a of a turn-based game, you want a real-time game. Both players are connect to each other and play at the same time.

Read the "Matchmaking Overview" and "Real-Time Matches" pages (available in the left sidebar).

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/MatchmakingwithGameCenter/MatchmakingwithGameCenter.html#//apple_ref/doc/uid/TP40008304-CH12-SW2


RE: Network game: how to handle turn game (like ruzzle management) - sefiroths - Aug 2, 2013 01:12 AM

but if a player accept to play, then disconnects...
in ruzzle the other player can play and can wait for days the answer of the opposer.
it is possible with real-ime match? or if he disconnects the play ends?