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
Publisher resources
Table of contents
-
Writing Game Center Apps in iOS
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- A Note Regarding Supplemental Files
- Preface
-
1. Game Center
- Introducing GCD and Block Objects
- Creating Game Center Accounts
- Setting Up Game Center for an iOS App
- Adding the Game Kit Framework
- Authenticating the Local Player in Game Center
- Retrieving the Local Player’s Information
- Adding Friends in Game Center
- Retrieving the Local Player’s Friends Information
- Creating Leaderboards in iTunes Connect
- Reporting Scores to Leaderboards
- Retrieving Leaderboards Information Programmatically
- Displaying Leaderboards to Players
- Creating Achievements in iTunes Connect
- Reporting Achievements to Game Center
- Retrieving Achievements Information Programmatically
- Displaying Achievements to Players
- Supporting Multiplayer Games and Matchmaking
- Handling Players’ State Changes in Multiplayer Games
- About the Author
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: Writing Game Center Apps in iOS
- Author(s):
- Release date: April 2011
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449308636
You might also like
book
Beginning ARKit for iPhone and iPad: Augmented Reality App Development for iOS
Explore how to use ARKit to create iOS apps and learn the basics of augmented reality …
book
Learn GameSalad for iOS: Game Development for iPhone, iPad, and HTML5
So you have a great idea for an iPhone or iPad game, but you've never programmed …
book
Learn SpriteBuilder for iOS Game Development
SpriteBuilder is the fun and versatile game development environment that is a natural successor to Cocos2D, …
book
Beginning iOS Game Center and Game Kit: For iPhone, iPad, and iPod touch
Beginning iOS Game Center and Game Kit shows you how to use Game Center and Game …