game-center-leaderboard

Game Center leaderboard shows one result

牧云@^-^@ 提交于 2019-12-10 11:36:09
问题 I've sent scores to the leaderboard with different test accounts but when I try to see the leaderboard I can only see the score from the account that I'm logged in. I used this code to send the scores : - (void)reportScore:(int64_t)score forLeaderboardID:(NSString*)identifier { GKScore *scoreReporter = [[GKScore alloc] initWithLeaderboardIdentifier: @"GHS"]; scoreReporter.value = score; scoreReporter.context = 0; [GKScore reportScores:@[scoreReporter] withCompletionHandler:^(NSError *error) {

How to open GameCenter in tvOS

Deadly 提交于 2019-12-09 12:58:13
问题 How can I open a game center leaderboard in tvOS? I've used this code for my iPhone games, 'leaderboardIdentifier' aren't available on tvOS. I've planned to use the same leaderboard on the AppleTV (it will be the same game). Many thanks for your help, Stefan @IBAction func handleGameCenter(sender: UIButton) { let gcViewController = GKGameCenterViewController() gcViewController.viewState = GKGameCenterViewControllerState.Leaderboards gcViewController.leaderboardIdentifier = gamePrefix +

Game Center groups

时光怂恿深爱的人放手 提交于 2019-12-05 13:16:56
I have an iOS game with one Game Center leaderboard. I published the game a few months ago and now I'm working on the OSX version. I want to use the same leaderboard for both versions of the game, which means that I need to create a Game Center group. The problem is that Apple forces you to modify your leaderboard ID's when you move them into a group: Group ids must begin with grp. Now, if I do that, I will need to update the iOS version of the game so that my users can keep posting their scores, and if I release an update for the iOS version of the game, players who don't install the update

Unity: Apple Game Center iOS7 registers the scores for only 30 minutes in the leaderboard

烂漫一生 提交于 2019-12-05 06:14:49
问题 My game is made using Unity 4.5 and the UnityEngine.SocialPlatforms.GameCenter. My game is in the app store. If I play the game and beat my high score, it is reported in Game Center and I see myself in the leaderboard. If I play with another device, it registers the score as well and I can see the 2 scores and the 2 players. Everything looks fine. BUT, and this is my problem, if I relaunch the app on the 2 devices 30 minutes after, the scores have disappeared from the leaderboard in game

Unity: Apple Game Center iOS7 registers the scores for only 30 minutes in the leaderboard

邮差的信 提交于 2019-12-03 21:29:17
My game is made using Unity 4.5 and the UnityEngine.SocialPlatforms.GameCenter. My game is in the app store. If I play the game and beat my high score, it is reported in Game Center and I see myself in the leaderboard. If I play with another device, it registers the score as well and I can see the 2 scores and the 2 players. Everything looks fine. BUT, and this is my problem, if I relaunch the app on the 2 devices 30 minutes after, the scores have disappeared from the leaderboard in game center. (And if I check directly on the iTunesConnect website, my leaderboard is empty too). I'm having

Building a SpriteKit/GameKit leaderboard within a specific scene

倖福魔咒の 提交于 2019-11-30 04:01:33
I'm pretty new to Swift and I'm having some trouble implementing a leaderboard into my game. I just watched a tutorial: 'Game Center Leaderboards! (Swift 2 in Xcode)' in which the GameCenter information all went through the one view of the app. In my game, I want the user to be able to play the game and then only when they are on a specific SKScene will they have access to GameCenter. So for example, on the GameOverScene will they be user authenticated and also will be able to upload their high score. I think I'm also missing some of the differences between the GameViewController (where all of