Apple Game Center

Type Library
Revision Release 2022.3683
Keywords gameNetwork, Game Center
Platforms iOS

Overview

Game Center lets friends in on the action with leaderboards and achievements. The nomenclature used in the Solar2D APIs for Game Center attempt to match the official Game Center APIs as much as possible, allowing you to cross-reference with official Game Center documentation.

Gotchas

Game Center is not supported in the simulator.

Syntax

local gameNetwork = require( "gameNetwork" )

Functions

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings =
{
    plugins =
    {
        ["CoronaProvider.gameNetwork.apple"] =
        {
            publisherId = "com.coronalabs"
        },
    },
}

Sample project

Source