game-center

Wrong language in Game Center Leaderboards/Achievements

久未见 提交于 2019-12-11 18:58:45
问题 The device language is Italian, when I open the Game Center from my app the titles "leaderboard" "achievement" are in Italian but the names and description of leaderboards and achievements are in English!! I use this code to show it : GameKitHelper *gkHelper = [GameKitHelper sharedGameKitHelper]; [gkHelper showLeaderboard]; If I open the Game Center directly from the app Game Center is everything in Italian. 回答1: Your app should follow the language settings that are set at a device level, not

How to implement a Best Score Today leaderboard using Game Center?

こ雲淡風輕ζ 提交于 2019-12-11 12:37:10
问题 I want to create a leaderboard in Game Center for the best scores submitted today, and I want it reset every day at midnight. It's not hard to just create a "most recent score" leaderboard and keep track of the score for the day in the app and submit it, however my concern is that users who do not launch the app the next day will have an old score which remains in the "best score today" board until they launch it. Is there any way to make scores expire, or only show the current scores for the

iOS Client/Server - should I use GameCenter?

守給你的承諾、 提交于 2019-12-11 08:58:10
问题 First time developing a client/server game and was wondering if anyone can give me some pointers. Should I just use GameCenter? Should I write my own? (Similar to what DrawSomething creators did) I have a basic demo of a GameCenter implementation working but I don't know the ups/downs of using it- are there any? Should I just develop my own to have full customization but lose out on a weekend of free time? Any insight is appreciated! Thanks! 回答1: GameCenter and similar services are very

Testing GameCenter leaderboards in simulator, do you have to “submit for review”?

大城市里の小女人 提交于 2019-12-11 06:16:07
问题 I'm reading Apple's documentation for "Turning On Game Center for the App Version" and at the end of section "To enable a version of your app for Game Center" step 7 says: "Submit for Review" My app is unpublished and still in development, so I'm reluctant to submit for review. On the other hand my API calls to report/load scores are failing. Is it required to submit for review in order to test the leaderboard APIs? What happens after submitting for review? Can I delete the leaderboard later

How do I identify the gamekit message window?

佐手、 提交于 2019-12-11 04:48:47
问题 When an iPhone app with GameKit launches, and the device is already logged in to GameCenter, a small message slides in on top of the screen, saying something along the lines of "Welcome back %username!". What I found out is the following: that message appears in its own UIWindow that eventually slides the message away and releases itself. When the message is onscreen, you can log out the following: all windows: ( "<UIWindow: 0x31fc70; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM;

Lag when authenticating local user on Game Center

眉间皱痕 提交于 2019-12-11 04:48:38
问题 For my cocos2d game, I authenticate the local user in the applicationDidFinishLaunching method of my AppDelegate. However, whenever the authentication is complete, it will cause a short lag in my game when the little "Welcome back, X" message slides down and back up. The problem is I have no control over when this authentication is complete – obviously the duration is highly dependent on the data connection of the device. Sometimes the message (and the un-avoidable accompanying lag) appears

Game Center In SpriteKit Not Dismissing Leader Board

百般思念 提交于 2019-12-11 04:09:29
问题 After a lot of searching on here I finally found a way for Game Center to display in SpriteKit but now I can't get the leaderboardViewControllerDidFinish method to call. I use this code in a different app and it works fine but for some reason with the code being modified for SpriteKit its just not working. Thank you in advance! Here is a sample of my code: - (void)showGameCenterButtonPressed:(id)sender { { if ([GKLocalPlayer localPlayer].authenticated == NO) { UIAlertView *message = [

Issues regarding gamecenter+ios

痞子三分冷 提交于 2019-12-11 03:27:48
问题 I am not knowing anything about gamecentre.I am working on the COCO application I had gone through gamecenter guide and get able to integrate the game center in my application. 1) Now the i am able enter the score in the gamecentre through my application. By doing this:- - (void) reportScore: (int64_t) score forCategory: (NSString*) category { GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:category] autorelease]; scoreReporter.value = score; [scoreReporter

“A GKScore must specify a leaderboard.”

无人久伴 提交于 2019-12-11 02:48:20
问题 Has anyone come across this error when trying to integrate Game Center into an iOS 7 App? A GKScore must specify a leaderboard. Here is the code where it fails: if(points > 0) { //Fails on the next line [self.gameCenterManager reportScore:points forCategory:self.currentLeaderBoard]; } GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init]; if (leaderboardController != NULL) { leaderboardController.category = self.currentLeaderBoard;

One game center account for two iOS apps

杀马特。学长 韩版系。学妹 提交于 2019-12-10 20:46:52
问题 Anyone knows what I need to do to have both my free and paid versions feed the same Game Center leader board? 回答1: I'm afraid that's not possible, because the Game Center uses the application's "bundle identifier" (such as com.myCompany.myCoolGame) to identify a game -- and two apps cannot have the same identifier. That's at least the status in iOS 4.1. 回答2: Provide a complete app, but disable features. Then use an in-app purchase to unlock these functionality. This way, 'both' Apps will have