Skip to main content
Participant
December 10, 2012
Question

Adobe AIR game center multiplayer

  • December 10, 2012
  • 2 replies
  • 1461 views

I am looking into the possibility of creating a card game for iOS, using adobe AIR. However the one issue I have is what seems like the lack of support for the multiplayer features of game center, particularly turn based features, however with little experience in this I am not 100% sure if this is a neccesity? If anyone has any further information on this it would be much appreciated.

This topic has been closed for replies.

2 replies

Participating Frequently
December 28, 2012

We have just released a GameKit ANE that includes support for both turn-based and real-time Game Center matches.  For turn-based matches specifically, you listen to three important events, and make one call each to advance turn, assign match outcome, and end game.

This ANE also provides a low-level API to the FULL native GameKit framework if you need more advanced functionalities.  That's right, the COMPLETE native GameKit framework with all the GK classes, properties, methods, delegates, and callback functions!

Check it out at https://airextensions.net/shop/extensions/game-kit-by-vitapoly/, and please let us know any comments or questions.

Thanks,

Michael

https://airextensions.net

mbhagya
Participating Frequently
December 11, 2012

The GameCenter ANE does have multiplayer support. However it does not support turn-by-turn matches yet.

No, turn-by-turn matches aren't a necessity for multiplayer games.

You can implement a multiplayer match using the following methods of GameCenterController:

1. showMatchmakerView / startMatch : to start a match with / without the native UI

2. startMatchVoiceChannel : to start voice chat

3. sendMatchData : to send data to all or a few players

4. requestMatchPlayers : to request all the player objects participating in the current match

5. stopMatchVoiceChannel : to stop voice chat

6. endMatch : to finish a match

The controller object also disptaches the following events which are useful for multiplayer matches:

matchCancelled, matchDataReceived, matchFailed, matchPlayerConnected, matchPlayerDisconnected, matchPlayersFailed, matchPlayersLoaded, matchStarted, matchVoiceFailed, sendMatchDataFailed, sendMatchDataSucceeded