O'Reilly logo

Swift Game Development - Third Edition by Stephen Haney, Siddharth Shekar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding an achievement

Achievements add a second layer of fun to your game and create replay value. To demonstrate a Game Center achievement, we will add a reward for getting a score of 15.

Creating a new achievement in iTunes Connect

Just like the leaderboard, we first need to create an iTunes Connect record for our achievement. Follow these steps to create a record:

  1. Log into iTunes Connect and navigate to the Game Center page for your app.
  2. Underneath the leaderboards list, locate and click on the Add Achievement button.
  3. Fill out the information for your achievement. Here are my values:
    Creating a new achievement in iTunes Connect

Let's take a look at each field:

  • Achievement Reference Name is the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required