0%

Book Description

Now that Apple has introduced the GameKit framework to its iOS SDK, you can integrate Game Center features directly into your iPhone and iPad apps. This concise cookbook shows you how it's done, with 18 targeted recipes for adding leaderboards, user authentication, achievements, multiplayer games, and many other features.

How do you display players' scores and achievements? How do you create Game Center accounts and add friends? Each recipe in this book includes a simple code solution you can put to work immediately, along with a detailed discussion that offers insight into why and how the recipe works.

Recipes include techniques to:

  • Set up Game Center for an iOS App
  • Use block objects and Grand Central Dispatch to write Game Center apps
  • Authenticate a local player in Game Center
  • Use iTunes Connect to create leaderboards and achievements
  • Retrieve leaderboard and achievement information programmatically
  • Handle players' state changes in multiplayer games

Table of Contents

  1. A Note Regarding Supplemental Files
  2. Preface
    1. Conventions Used in This Book
    2. Using Code Examples
    3. Safari® Books Online
    4. How to Contact Us
    5. Acknowledgments
  3. 1. Game Center
    1. Introducing GCD and Block Objects
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    2. Creating Game Center Accounts
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    3. Setting Up Game Center for an iOS App
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    4. Adding the Game Kit Framework
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    5. Authenticating the Local Player in Game Center
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    6. Retrieving the Local Player’s Information
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    7. Adding Friends in Game Center
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    8. Retrieving the Local Player’s Friends Information
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    9. Creating Leaderboards in iTunes Connect
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    10. Reporting Scores to Leaderboards
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    11. Retrieving Leaderboards Information Programmatically
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    12. Displaying Leaderboards to Players
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    13. Creating Achievements in iTunes Connect
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    14. Reporting Achievements to Game Center
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    15. Retrieving Achievements Information Programmatically
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    16. Displaying Achievements to Players
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    17. Supporting Multiplayer Games and Matchmaking
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
    18. Handling Players’ State Changes in Multiplayer Games
      1. Problem
      2. Solution
      3. Discussion
      4. See Also
  4. About the Author
  5. Copyright
18.188.211.106