简体   繁体   English

谷歌实时多人api示例:ButtonClicker

[英]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.

相关问题 Android上的Google实时多人游戏 - Google Real-time Multiplayer on Android 在Android中开发实时多人游戏 - Developing a Real-time Multiplayer Game in Android Google玩实时多人并发-有时玩家会在同一时间选择正确的答案 - Google play real-time multiplayer concurrency - sometimes players pick the right answer at the same time Google服务中的实时多人游戏的问题(向您的房间配置添加独家位掩码) - The issue with real-time multiplayer from google services (adding an exclusive bitmask to your room configuration) 当应用程序进入后台时,实时多人游戏Google Play游戏服务同行会断开连接 - Real-time Multiplayer Google Play Games Services peer gets disconnected when app goes in background 如何在实时多人Google Play游戏服务中创建房间时向其他参与者发送数据 - How to send data to other participant on Room creation in Real-time Multiplayer Google Play Game Services 如何在使用Google Play游戏服务的实时多人游戏中使用僵尸玩家? - How can I use bot players in real-time multiplayer games using Google Play game services? 如何使用Google Play游戏在实时多人游戏中处理应用版本? - How to handle app versions in real-time multiplayer using Google Play Games? 如何检测客户是否故意在Google Play游戏实时多人游戏中留下房间? - How to detect if client intentionally left Room in Google Play Games Real-time Multiplayer? Google Play实时多人游戏无法在Genymotion虚拟设备上运行 - Google Play real-time multiplayer does not work on a Genymotion virtual device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM