简体   繁体   English

在Android上显示higscore时,Scoreloop挂在“正在连接”上

[英]Scoreloop hangs on “connecting” when displaying higscores on Android

I try to implement Scoreloop in libgdx. 我尝试在libgdx中实现Scoreloop。 I used some tutorials here and here . 在这里这里使用了一些教程。 When I run the game and try to show the higscores with showscoreLoop() I have to accept TOS first. 当我运行游戏并尝试使用showscoreLoop()显示higscores时,我必须首先接受TOS。 After pressing "enable" (accept) window with "Connecting, please wait" show and nothing happens...When I minimize the app and start it again, I get the nullexception when I try to access the highscores again. 在显示带有“正在连接,请稍候”的“启用”(接受)窗口后,什么也没有发生……当我最小化应用程序并再次启动它时,当我尝试再次访问高分时会得到nullexception。

Any help here? 这里有什么帮助吗? I'm really desperate as there is almost no support for Scoreloop.. 我真的很绝望,因为几乎没有对Scoreloop的支持。

I realize this doesn't answer your question directly, but it might end up saving you a good bit of time in the long run. 我意识到这并不能直接回答您的问题,但是从长远来看,它可能最终会节省您很多时间。

We've had some good success with LibGDX projects using Swarm (aka SwarmConnect ) for leaderboards in Android games. 在Android游戏的排行榜中,使用Swarm(aka SwarmConnect )的LibGDX项目取得了一些成功。 Integration is pretty straight forward as long as you initialize at the end of onResume() and remember to make calls to Swarm.setActive() and Swarm.setInactive() in the right places. 只要在onResume()的末尾进行初始化并记住在正确的位置调用Swarm.setActive()和Swarm.setInactive(),集成就非常简单。 It's documented pretty well though. 不过,它的记录非常好。

If you go to the LibGDX forums and do a quick search for SwarmConnect, you'll find plenty of links to threads that can help :). 如果您访问LibGDX论坛并快速搜索SwarmConnect,您会发现很多可以帮助您:)的线程链接。 Cheers! 干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM