Book Image

Game Development with Swift

By : Stephen Haney
Book Image

Game Development with Swift

By: Stephen Haney

Overview of this book

Table of Contents (18 chapters)
Game Development with Swift
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10. Integrating with Game Center

Apple provides an online social gaming network called Game Center. Your players can share high scores, track achievements, challenge friends, and start matchmaking for multiplayer games with Game Center. In this chapter, we will use Apple's iTunes Connect website to register our app with Apple. Then, we can integrate with Game Center to add leaderboards and achievements in our game.

Tip

You will need an active Apple developer account (which costs $99 per year) to register your app with Apple, access the iTunes Connect website with Game Center, and publish your game to the App Store.

The topics in this chapter include:

  • Registering an app with iTunes Connect

  • Authenticating the player's Game Center account in our app

  • Opening Game Center from the MenuScene class

  • Adding a leaderboard

  • Creating and awarding achievements