Game Development Reference
In-Depth Information
Creating or editing an achievement
9-8 , we see the web page for creating and editing an achievement in iTunes Connect. Item
A shows the internal name used for the achievement. Item B is where the ID for the achievement
is displayed. Item C indicates that this achievement is not hidden. By default, achievements are
viewable to users even if they have not achieved them. However, it can be fun to specify some
achievements that are listed, so users are surprised when they achieve them. Item E shows that we
have specified the display text for the English language. Of course, text for other languages can be
added by clicking the Add Language button.
We have looked at how to create a new App ID and a new application in iTunes Connect. We also
briefly looked at the screens required to create a leaderboard and an achievement. Now, let's look at
the code that takes advantage of these new resources.
Using Game Center in Your Game
It is surprisingly easy to work with GameKit to start using the leaderboard and achievement
features once Game Center is set up to include them. The following sections will discuss how to
connect to the user's Game Center account, submit his or her scores to a leaderboard, and earn an
achievement.
Enabling Game Center for a User
When a game is Game Center-enabled, the user must still opt into the Game Center features. The
user is required to create an account with Game Center and be authenticated on the current iOS
device with that account. Thankfully, Apple has made it simple to get going with Game Center.
 
Search WWH ::




Custom Search