Chapter 17 Creating Multiplayer Games with GameKit
Apple Game Frameworks and Technologies — by Tammy Coron (160 / 193)
👈 Next Steps | TOC | Request a Turn-Based Match 👉
Now that you have some of the basic Game Center features added to Hog Dice, you’re ready to extend the game’s functionality to allow for online multiplayer gaming over Game Center.
With online multiplayer Game Center games, players can enjoy playing your game with other real-life people, which can help increase the popularity of your game. Besides the bump in popularity, playing games with other humans is a lot of fun. So, if your game lends itself to player versus player gameplay, consider adding multiplayer functionality — even if it means a little more work on your part.
In Game Center, there are two types of multiplayer games: real-time and turn-based. In both cases, players can invite friends or participate in an auto-matched game with random players. In this chapter, you’ll focus on auto-matched, turn-based gaming. In this chapter, you’ll focus on auto-matched, turn-based gaming, which the following images depict:
An auto-matched game occurs when Player A attempts to start a new online game. If there’s already a game started by another player (Player B), and that game is looking for a spot…