Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created December 14, 2012 00:54
Show Gist options
  • Save legumbre/4281559 to your computer and use it in GitHub Desktop.
Save legumbre/4281559 to your computer and use it in GitHub Desktop.
gc.authenticate_local_user(function (error)
if (not error) then
klog.info ("Game Center authentication OK!")
rr_gc.user_authenticated = gc.local_user_id()
-- uncomment the next line to reset GC achievements on launch
-- gc.reset_achievements(function () print "achievements reset ok!" end)
else
rr_gc.user_authenticated = false
klog.warning("Game Center authentication failed: "..error)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment