Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

#hxgk for HaxeFlixel

The options for integrating Game Center into HaxeFlixel projects are not great. The original HxGK project seems to have largely disappeared from the Internet and NMEX, while full of great features, is an absolute pain to get running in its current state. This project should, hopefully, make basic Game Center integration (leaderboards and achievements) much simpler.


  • Install hxgk into a directory:
  • Add the following to your Project.xml file:
<include path="DESTINATION-FOLDER" if="ios" />
<dependency name="GameKit.framework" if="ios"/>
  • Remember to include import hxgk.Hxgk; in your .hx files!


This is a brand new hack of a seemingly abandoned extension and not very well tested. It works on my project, but I'm eager for feedback from others. There is now a sample program in the repo, but I haven't had a chance to fully test it.


When testing Game Center apps, there is a bug with the sandboxed Game Center since iOS 7. You can read more about it here. Essentially, if you hit "Cancel" at Game Center login 3 or more times, the device (hardware or simulated) will automatically cancel all future login requests. This is not a bug with hxgk-flixel. To fix this, you must wipe the device settings, which can be done through the settings app on iOS devices or "Reset Content and Settings..." in the iOS Simulator menu.


A modified hxgk that adds Game Center support to HaxeFlixel projects.




No releases published
You can’t perform that action at this time.