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 collecting 200 coins without dying.
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 the record:
- Log into iTunes Connect and navigate to the Game Center page for your app.
- Underneath the leaderboards list, locate and click the Add Achievement button.
- Fill out the information for your achievement. Here are my values:
Note
Let's take a look at each field:
- Reference Name is ...
Get Swift 3 Game Development - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.