类型 库 修订 版本 2024.3703 关键词 Google Play 游戏服务, 游戏网络, gpgs 平台 Android
Google Play 游戏服务 插件支持访问
本文档概述了传统的 Google Play 游戏服务插件,主要用于仍在使用多人游戏功能的 Android 游戏。 对于新的 Android 游戏,您应该使用 Google Play 游戏服务 v2 插件。
如果您遇到
local gpgs = require( "plugin.gpgs" )
这些核心函数管理与 Google 服务器的连接、身份验证和其他任务。
此插件的特定功能方面被划分为节点,以便更好地组织
要使用此插件,请在 build.settings 的 plugins 表中添加一个条目。 添加后,构建服务器将在构建阶段集成该插件。
settings = {
plugins =
{
["plugin.gpgs"] =
{
publisherId = "com.coronalabs",
supportedPlatforms = { android=true }
},
},
}
此外,您必须指定build.settings 的 android 表中,作为 googlePlayGamesAppId 键
settings = {
android =
{
googlePlayGamesAppId = "YOUR_APPLICATION_ID",
},
}