Alex Rivera | Logout

Testing Multiplayer Game Center game

Asked 2012-09-27T15:16:59.093
16

I've read varying/conflicting answers, and I need some definite answers.

I'm currently at the start of developing a turn-based multiplayer game with Game Center. I've been following a tutorial @rayWenderlich.com, and I've got the player being authenticated in the simulator and the match making viewController popping up, but that's as far as I've got.

So first question is,

  1. Is it possible for my code (via the simulator), and my iPhone to connect/match/find each other?
    • I've read that this is not possible, but I'm sure I saw a Youtube video of a guy that got both of them communicating
  2. What aspects of turn-based Game Center functionality can you test with just the simulator and 1 device?

Update:

I wasn't imagining things, after a bit of searching, I found that Youtube video.

Maybe it's something different, but it seems to be possible to match/play from the simulator to an iOSDevice and back again. How is that compared to what people say you can't do on here?

Edit
Report

1 Answer

5

The only difference between testing on simulator and physical device is GKTurnBasedEventHandler doesn't work on the simulator. So these methods won't be called on iOS Simulator :

-(void)handleInviteFromGameCenter:(NSArray *)playersToInvite
-(void)handleMatchEnded:(GKTurnBasedMatch *)match
-(void) handleTurnEventForMatch:(GKTurnBasedMatch *)match didBecomeActive: (BOOL)didBecomeActive

While using an iOS Simulator and a Device for testing, those methods will be called on device but not in simulator. So it will very hard to develop.

answered 2013-01-15T00:55:29.237

Your Answer