O'Reilly logo

Mastering Cocos2d Game Development by Alex Ogorek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Game Center leaderboards

We've already got a set of top 20 high scores that are stored on the user's device, so why not make a global leaderboard? In fact, even though many players don't use Game Center when they play games, it is yet another element that drives engagement. Plus (and this is the really cool part)—if you didn't know already—you can actually have players rate your game within Game Center. It's not even an extra feature or anything, as they can just tap the star count at the top of the leaderboard or achievement pane and it'll send the rating to the App Store.

Creating a leaderboard to display in our game isn't just about code, so we have to create the leaderboard in iTunes Connect first. Before we can create the app in iTunes Connect, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required