Book Image

Swift by Example

By : Giordano Scalzo
Book Image

Swift by Example

By: Giordano Scalzo

Overview of this book

Table of Contents (15 chapters)

Integrating with Game Center


Game Center can be defined as a social gaming network that offers multiplayer features. It was made available in iOS 4.1, and it has been updated with new gaming options ever since.

What Game Center provides

The features provided by Game Center are as follows:

  • Leaderboards: This is a shared database containing the scores of the players of the game. It allows them to add their personal results and compare them with the scores of other players.

  • Achievements: These are the goals defined inside the game that cause players to maintain interest in the game. Some examples of achievements can be Destroyed 50 enemies, Run during the night, and so on.

  • Multiplayer: This feature allows the developer to implement a networked game where players can compete with each other, either in real time or in a turn-based manner.

Incorporating Game Center into an app is a two-step project. First of all, we need to set up the app in iTunes Connect, enabling Game Center support and setting...