Skip to content
Support for iOS GameCenter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
extension/gamecenter
ndll
project
.gitignore
.travis.yml
LICENSE.md
README.md
haxelib.json
include.xml

README.md

MIT License Haxelib Version Build Status

GameCenter

Provides access to Apple GameCenter (iOS, Mac) for OpenFL projects using a common API.

Installation

You can easily install GameCenter using haxelib:

haxelib install gamecenter

To add it to a Lime or OpenFL project, add this to your project file:

<haxelib name="gamecenter" />

Troubleshooting

If you are running on iOS 8.0 or greater you will need to manually enable Sandbox or else Authorization will fail.

In iOS, go to Settings > Game Center and manually enable Sandbox.

Development Builds

Clone the GameCenter repository:

git clone https://github.com/openfl/gamecenter

Tell haxelib where your development copy of GameCenter is installed:

haxelib dev gamecenter gamecenter

You can build the binaries using "lime rebuild"

lime rebuild gamecenter ios

For mac you need to add this to mac-toolchain.xml in linker id="dll"

  <flag value="-framework"/>
  <flag value="Gamekit"/>

To return to release builds:

haxelib dev gamecenter
You can’t perform that action at this time.