android google 游戏服务 - 服务器控制
android google game service - Server control
我正在尝试创建我的纸牌游戏 android 应用程序,我使用了 playgamesservices 示例 (https://github.com/playgameservices/android-basic-samples)。
现在我成功地创建了一个房间并与玩家开始游戏,并且每个玩家都接收和发送来自所有其他玩家的数据。
我正在开发一个多人纸牌游戏,我有一个关于游戏初始的问题。
我想让服务器成为游戏的"manger",发卡和玩家的每一次操作都会上传到服务器,然后玩家会从服务器获取更新。而是每次操作都会发送给所有玩家,每个玩家都需要处理和计算。
我知道如果我创建自己的服务器-客户端设计是可能的,但是在 google 播放服务中可能吗?
我认为 Real-time Multiplayer API 是您要查找的内容:
Your game can use the real-time multiplayer API in Google Play games services to connect multiple players together in a single game session and transfer data messages between connected players. Using the real-time multiplayer API can help to simplify your game development effort because the API handles the following tasks on your behalf:
- Manages network connections to create and maintain a real-time multiplayer room (a virtual construct that enables network communication between multiple players in the same game session and lets players send data directly to one another).
- Provides a player selection user interface (UI) to invite players to join a room, look for random players for auto-matching, or a combination of both.
- Stores participant and room state information on the Google Play games services servers during the lifecycle of the real-time multiplayer game.
- Sends room invitations and updates to players. Notifications appear on all devices on which the player is logged in (unless disabled).
To learn how to implement real-time multiplayer games for your platform, see Client implementations.
Sending Game Data 部分声明(强调我的):
You can use the Google Play games services to broadcast data to participants in a room, or allow participants to exchange messages with each other. Data messages can be sent using a reliable or unreliable messaging protocol provided by Google Play games services.
有了这个,我认为取决于你将如何实现它,你可以使用 Google Play Games 来管理服务器和玩家之间(以及玩家之间)的游戏数据。
我正在尝试创建我的纸牌游戏 android 应用程序,我使用了 playgamesservices 示例 (https://github.com/playgameservices/android-basic-samples)。 现在我成功地创建了一个房间并与玩家开始游戏,并且每个玩家都接收和发送来自所有其他玩家的数据。
我正在开发一个多人纸牌游戏,我有一个关于游戏初始的问题。 我想让服务器成为游戏的"manger",发卡和玩家的每一次操作都会上传到服务器,然后玩家会从服务器获取更新。而是每次操作都会发送给所有玩家,每个玩家都需要处理和计算。
我知道如果我创建自己的服务器-客户端设计是可能的,但是在 google 播放服务中可能吗?
我认为 Real-time Multiplayer API 是您要查找的内容:
Your game can use the real-time multiplayer API in Google Play games services to connect multiple players together in a single game session and transfer data messages between connected players. Using the real-time multiplayer API can help to simplify your game development effort because the API handles the following tasks on your behalf:
- Manages network connections to create and maintain a real-time multiplayer room (a virtual construct that enables network communication between multiple players in the same game session and lets players send data directly to one another).
- Provides a player selection user interface (UI) to invite players to join a room, look for random players for auto-matching, or a combination of both.
- Stores participant and room state information on the Google Play games services servers during the lifecycle of the real-time multiplayer game.
- Sends room invitations and updates to players. Notifications appear on all devices on which the player is logged in (unless disabled).
To learn how to implement real-time multiplayer games for your platform, see Client implementations.
Sending Game Data 部分声明(强调我的):
You can use the Google Play games services to broadcast data to participants in a room, or allow participants to exchange messages with each other. Data messages can be sent using a reliable or unreliable messaging protocol provided by Google Play games services.
有了这个,我认为取决于你将如何实现它,你可以使用 Google Play Games 来管理服务器和玩家之间(以及玩家之间)的游戏数据。