在 LibGDX 游戏中实现排行榜

Implementing a leaderboard in a LibGDX game

我有一个 libGDX 游戏发布并且 运行 在 Play 商店上架,但是我在游戏中实现排行榜时遇到了问题。为此,我已经尝试了可能在 Internet 上可用的所有方法,例如:

Google Play Games Services in LibGDX

google play game services tutorial example

how to setup google play game services in libgdx using android studio

我已经完成了 Google 中的所有 material,设置了排行榜、应用程序 ID 和成就 ID,并通过 Google 地方控制台发布了游戏排行榜,但是问题我最感兴趣的是设置排行榜时提供的所有教程或 materials 信息。

现在我再次尝试使用下面的 link,因为我在 Android Studio 和 libGDX.

中制作了我的应用程序

how to setup google play game services in libgdx using android studio

现在本教程和其他教程的不同基本问题是,它说要克隆包含 Android 基本示例的存储库,如下所示

android-basic-samples

然后 import BaseGameUtils 在路径 BasicSamples\libraries\BaseGameUtils,但是这个项目没有可用的 BaseGameUtils 示例。

如果有任何使用 libGDX 和 Android studio 实现排行榜的正确方法以及如何使用 BaseGameUtils,谁能提供建议。这是一个旧的 tuts,如果 Google API 被改变了。

经过多天的阅读和努力,我能够在 libGDX 游戏中实现排行榜。可以在下面看到一个新的详细更新教程 link

https://www.versionpb.com/tutorials/step-step-tutorials-libgdx-basic-setup-libgdx/implementing-google-play-services-leaderboards-in-libgdx/