[英]How can I use bot players in real-time multiplayer games using Google Play game services?
I'm working on a new multiplayer game for Android devices and we are planning on using GPGS to handle our lobby/ gameplay. 我正在为Android设备开发一款新的多人游戏,我们正计划使用GPGS来处理我们的大厅/游戏。 We need to fake it until we make it and have enough users to bring the matchmaking queue down to a reasonable wait.
我们需要伪造它直到我们制作它并且有足够的用户将匹配队列排到合理的等待。
Is it possible to have bot users that work with GPGS? 是否可以让机器人用户使用GPGS? Is it possible to extend the matchmaking functionality to include this?
是否可以扩展匹配功能以包含此功能?
You can implement bots at the game level. 您可以在游戏级别实现机器人。 You can't emulate a match participant at the GPGS level, but it's pretty straightforward to do that from the game's layer.
您无法在GPGS级别模拟匹配参与者,但从游戏层开始这样做非常简单。 What you would do is something like this:
你会做的是这样的:
So, as far as GPGS is concerned, you only have human players, but in your game's logic, there are N bots as well as players in the game. 因此,就GPGS而言,你只有人类玩家,但在你的游戏逻辑中,游戏中有N个机器人和玩家。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.