Game Development Reference
In-Depth Information
Figure 9-2. Signing into GameKit
In Figure 9-2 , we see the Welcome screen for the game Belt Commander. At the top, we see a
notification from Game Center letting the user know that this game is using GameKit with the user
account displayed. We also see the word “sandbox.” This is informing us that we're not using the
live version of Game Center but, rather, the development version. For the most part, you don't have
to worry about this; while developing, you will be using the sandbox exclusively.
To enable GameKit in your project, you obviously use classes from GameKit, but you also have to tell
Apple that you want GameKit support for a given game. The following section describes how to set
up GameKit in iTunes Connect.
Enabling Game Center in iTunes Connect
Game Center is not just an app or set of libraries on your iOS device. It is also a set of Web services
hosted by Apple that provide much of the functionality. In order for your game to use these services,
you have to configure your application. You will have to create an App ID in the provisioning
portal, configure Xcode to use the resultant Bundle Identifier, and configure your application in
iTunes Connect to use Game Center. Let's assume we are making a new game and start with the
Provisioning Portal, as shown in Figure 9-3 .
 
Search WWH ::




Custom Search