类型 库 修订版 版本 2024.3703 关键字 gameNetwork、Game Center 平台 iOS
Game Center让好友能够参与游戏,提供排行榜和成就功能。Solar2D API 中用于 Game Center 的命名规则尽量与官方 Game Center API 保持一致,使你能够
模拟器不支持 Game Center。
local gameNetwork = require( "gameNetwork" )
如需使用此插件,请在 `build.settings` 的 `plugins` 表中添加一个条目。添加后,构建服务器将在构建阶段集成该插件。
另请务必添加下面所示的 iPhone 权限表
settings = { plugins = { ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs" }, }, iphone = { entitlements = { ["com.apple.developer.game-center"] = true, }, } }