Game Center for iOS: Building a Turn-Based Game

In this tutorial, you’ll learn about authentication with Game Center and how its turn-based mechanics work. In the end, you’ll have the foundations of how to integrate a multiplayer game with GameCenter. By Ryan Ackermann.

4.5 (12) · 2 Reviews

Download materials
Save for later
Share
You are currently viewing page 3 of 3 of this article. Click here to view the first page.

Where to Go From Here?

You now have a game that can authenticate to Game Center, manage matches and send turns back and forth between players. Once you understand the pieces of a turn-based game with Game Center, you can apply these concepts to other iOS or macOS games.

You can download the completed version of the project using the Download Materials button at the top or bottom of this tutorial.

If you’re interested in adding more features to this game, you could add a way to indicate in the app that there’s a new turn. You’ll receive notifications letting you know there’s a new turn, but in the app Game Center notifications don’t show.

Check out this tutorial on Artificial Intelligence with GameplayKit if you’re interested in adding AI to the game to play solo against the computer.

You can also check out the official Apple Documentation about GameKit to see what else it has to offer.

I hope you enjoyed this tutorial! If you have any questions or comments, please join the discussion below!