I'm struggle to get GameCenter to work with my app, partly due to there being no examples for tier 1.
When my app first starts I use the GameCenterSetup() command.
Then at the end of each game (high score permitting) the user can press a button to post their score to gamecenter:
GameCenterLogin()
waitTime=10000
repeat
dec waitTime
sync()
until getGameCenterLoggedIn()=true or waitTime<=0
if waitTime<0
message("Couldn't log into Game Center. Check web connection.")
else
GameCenterSubmitScore(score,"<myappid-removed>")
GameCenterShowLeaderBoard("<myappid-removed>")
endif
As far as I can tell from the guide this is the right way to use the commands. However:
The button presses as it should, but the GameCenterLogin() command does absolutely nothing and my app is then stuck in the repeat...until loop (until my wait timeout expires). I'm assuming there should be a popup for the user to log in with.
I'm using AppGameKit 108b17 tested standalone app (not via a player) on iPad2, what am I doing wrong?
DarkBasic Pro 7.7 U77RC7 - AppGameKit 107
Windows 7 x64