Multiple Session Achievements

In the previous example, the Score 100 achievement required the player to earn the entire 100 points while in a single match. However, there often will be times when it will be required to track a user across multiple matches and even app launches as they progress toward an achievement. The first of the multiple session achievements that will be implemented is the com.dragonforged.whackacac.play5 achievement.

Each time the player completes a round of game play, the com.dragonforged.whackacac.play5 achievement will be progressed. Since the achievement is completed at five games played, each game increments the progress by 20%. This hook will be added to the viewWillDisappear method of ICFGameViewController. As with ...

Get iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK 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.