iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK
by Kyle Richter, Joe Keeley
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access