[英]google real-time multiplayer api example: ButtonClicker
i have been really wanting to create a real-time multiplayer android game and was following this tutorial: https://developers.google.com/games/services/android/realtimeMultiplayer 我一直很想创建一个实时的多人android游戏,并遵循了本教程: https : //developers.google.com/games/services/android/realtimeMultiplayer
I even corrected the errors on the ButtonClicker example(it's the only one with real-time multiplayer) and got it to work, but didn´t test the multiplayer yet. 我什至更正了ButtonClicker示例中的错误(这是唯一一个具有实时多人游戏的示例),并使它可以正常工作,但尚未测试多人游戏。 I copied the whole project to my brother´s computer and he tried to play with me.
我将整个项目复制到了我哥哥的电脑上,他试图和我一起玩。 But every time he click on the button to invite me, it´s saying "the project is incorrectly configured".
但是每次他单击按钮邀请我时,它的意思是“项目配置不正确”。 Does he have to generate another aplication id?
他是否必须生成另一个应用程序ID? has anyone tested the example using 2 different computers and the android emulator of eclipse?
有没有人使用2台不同的计算机和eclipse的android模拟器测试了示例?
Google Play Services aren't typically installed on the emulator. 通常不会在模拟器上安装Google Play服务。 I think you'll need a pair of actual devices.
我认为您需要一对实际设备。
It might also need signed applications, but I'm not that familiar (yet) with the Google Play Services model. 它可能还需要签名的应用程序,但是我还不熟悉Google Play服务模型。
I think i resolved it(at least my brother could login on his computer) by adding testers to my project on google play development console. 我认为我通过在Google Play开发控制台上向我的项目添加测试人员来解决该问题(至少我的哥哥可以在他的计算机上登录)。 Now all he needs to do is use another emulator on his computer to emulate multiplayer, just like i did ^^
现在他需要做的就是在计算机上使用另一个模拟器来模拟多人游戏,就像我做的^^
如果它给您未配置的错误,请再次检查您是否使用与链接的sha1相同的证书对应用程序进行了签名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.