前几天,随着 Android 的新 Google Play 游戏服务
的发布,我想实现他们的排行榜。看完here ,我是否正确地理解,不可能让用户向一个排行榜提交多个分数?从阅读来看似乎是这样,但如果这是真的,那就令人失望了。我希望我只是错误地阅读它,或者有另一个链接可以让我实现我需要的!
我的问题是,是否有一种方法可以使用 Android 的新 Game Services
Leaderobard,用户可以向 1 个排行榜提交多个分数,而不仅仅是让排行榜存储用户获得的最高分数。
最佳答案
向排行榜提交多个分数是没有意义的。
The game services checks if this score is better than the player's current leaderboard entry for the daily, weekly, or all-time score. If it is, the game services updates the corresponding leaderboards with the new score.
为什么要向一个排行榜提交多个分数?
如果您有不同的级别,您可以create different leaderboards为此。
Games can have multiple leaderboards, up to a maximum of 100. For example, a multi-level game might provide a different leaderboard for each level, and a racing game might have a separate leaderboard for each track.
您的评论的解决方案
The game services sends a score report back to the game client. This report tells the client whether this is a new daily, weekly, or all-time high score. If it isn't, the game services will tell the client what the current daily, weekly, or all-time high score is for this player.
关于java - Android 的新 Google Play 游戏服务排行榜 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16613783/