如何在iOS游戏中心提交我的胜利游戏时间 [英] How To submit my time of win game in game center in ios

查看:78
本文介绍了如何在iOS游戏中心提交我的胜利游戏时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iOS的游戏中心发布/提交我的时间,我已经完成了 2 薄荷游戏并提交了我的时间游戏中心

how to post/Submit my time in game center in iOS acutely i am complete my game with in 2 mint and Submit my time game center

02.00 排行榜这样节省时间,例如 0.00.02 我想以排行榜 0.02.00

02.00 and acutely leaderboard save time like this 0.00.02 i want submit my time look like in leaderboard 0.02.00

currentScore=02.22;

[[GameCenterManager sharedManager] saveAndReportScore:currentScore leaderboard:leaderboardNameID
                                                    sortOrder:GameCenterSortOrderLowToHigh];

推荐答案

score参数是整数,因此您应该跟踪秒数作为分数,而不是分钟数:

The score parameter is an integer, so you should be tracking the number of seconds as the score, not the number of minutes:

int score = 2 * 60 + 22;   // 142 seconds = 2m22s

参考

这篇关于如何在iOS游戏中心提交我的胜利游戏时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆