February 2017
Beginner to intermediate
258 pages
5h 31m
English
If the user is authenticated, we will add a button to the MenuScene class so they can open the leaderboard and view achievements from within our game. Alternatively, players can always use the Game Center app in iOS to view their progress.
Follow these steps to create a leaderboard button in the menu scene:
MenuScene.swift in Xcode.GameKit framework:import GameKit
MenuScene class so that our class adopts the GKGameCenterControllerDelegate protocol. This allows the Game Center screen to inform our scene when the player closes the Game Center:class MenuScene: SKScene, GKGameCenterControllerDelegate ...
Read now
Unlock full access