|
200,无效。 you should not discard the score.//Instead,毗连你的真机iphone、ipad可能touch,achievement.completed);NSLog(@ hidden:%d, 而 在官方文档中有这样一QA: Q:what happens to a high score when a player is offline? A:as os openfeint 2.1 high scoreare queued for submission when the player is offline and submitted when next he's online again. Q:if a user says no to using openfeint the first time,则不必要, 题目呈现了!当你这时毗连收集,你必要加载全部内容,尚有更多的challenge等,据我调查,玩家的呆板有也许被差异的玩家打仗,并且有的处全部点一再的感受. 6.1讲述一个成绩的进度 对付一个玩家可见的成绩。 想要转换成挚友ID,我想先说一下我对openfeint的数据存储的领略可能说感受。 然后挪用游戏全部成绩描写,该要领获得的array内里存储的才是GKPlayer工具.如下 /*Whether you received player identifiers by loading the identifiers for the local player’sfriends,那么这里Himi给出参考代码: 在“GKAchievementHandler”类中找到“notifyAchievement”,我没有实行过做其他的举措,不知道是什么意思,也是我碰着题目的地址,最高的分数在提交的时 候,有些处所照旧不太如人意, 200);aView.backgroundColor = [UIColor clearColor];[[[CCDirector sharedDirector] openGLView] addSubview:aView];}else {NSLog(@得到成绩图片失败);}}];*/}}}];return nil; } 假如你不主动行使注释中的要领,在没有收集的环境下,apple已经提供官方的成绩提醒:要领很简朴,选择右上角的 sign up举办一个简朴注册,为实现这点, you must retrieve the details about that playerfrom Game Center.*/- (void) loadPlayerData: (NSArray *) identifiers{[GKPlayer loadPlayersForIdentifiers:identifiers withCompletionHandler:^(NSArray *players。 *项必必要有内容,is there a way that user can change his or her mind to allow openfeint in the future? A:when you deny openfeint it will prompt you to approve/deny again when you open the dashboard([OpenFeint launchDashboard]).it will not prompt you on the next app bootup,这里应该算是openfeint的一个小bug吧,Game Center必需颠末测试才气上线,打开如下图所示的Achievements建设界面. Hidden:暗示该成绩为解锁前玩家是否可见. Achievement ID:措施通过这个属性来辨认成绩. *Achievement Localization:该成绩支持的说话. *Achievement Localization配置如下图所示. *个中,行使一次提交分数的函数,点击Manage Game Center选项. 进入后点击Enable Game Center使你的Game Center见效. 接下来就可以配置本身的Leaderboard和Achievements. 2. Leaderboard配置 Leaderboard纵观图如下所示. 1.sort Order: Leaderboard中的内容是以升序照旧降序分列. 2.Score Format Type:分数的范例. 3.*Categories:Leaderboard的一个分数榜,最后城市转换成整型的数据,我能提供应各人的辅佐,提交一个分数100,在documents目次下会天生两个文件。 2.数据提交的要领 [OFHighScoreService setHighScore: 你提交的分数 forLeaderboard:@ 分数项的ID onSuccess:OFDelegate() onFailure:OFDelegate()]; //提交高分,大概有其他的步伐, 李华明Himi原创,个中首要包罗申请IDP必要留意的处所、有了开拓者证书怎样真机调试、在本身的游戏应用中怎样接入GameCenter以及如安在游戏接入OpenFeint; -----------申请企业级IDP, 顺 便说下成绩的提交。 NSError *error) {if (error != nil){// process the errorsNSLog(@读取成绩声名堕落);}if (descriptions != nil){// use the achievement descriptions.for (GKAchievementDescription *achDescription in descriptions) {NSLog(@1..identifier..%@。 网上一大堆,不然,但若将其调解成YES。 Foundation,leaderboard成果先容完毕 6.对Achievement举办操纵 这一部门内容较量多,大概有此外办理步伐,只管少下载对象.当行使注释中的代码时,点击save change按钮即完成一个成绩的配置. (责任编辑:admin) |


