如何使用Game Center实现今日最佳得分排行榜? [英] How to implement a Best Score Today leaderboard using Game Center?

查看:446
本文介绍了如何使用Game Center实现今日最佳得分排行榜?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在游戏中心创建一个排行榜,以获得今天提交的最佳分数,我希望它每天午夜重置。

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 day in a Game Center leaderboard?

推荐答案

你需要在iTunes连接中做到这一点,在这个网站上有游戏中心和排行榜的ugode: https://developer.apple.com/library/ios/documentation/NetworkingInternet/概念/ GameKit_Guide /排行榜/排行榜.html

YOU need to do it in iTunes connect, there is ugode on Game center and leaderboards on this site: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/GameKit_Guide/LeaderBoards/LeaderBoards.html

编辑:
这里解释了GKLeaderboard的时间范围
https://developer.apple.com/LIBRARY/IOS/documentation/GameKit/Reference/GKLeaderboard_Ref/Reference /Reference.html

这篇关于如何使用Game Center实现今日最佳得分排行榜?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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