For using game center, your app should be on the Itunesconnect and enable Game Cener.
If you did that, here is what you have to do now.
It is very simple. Try the following codes.
GKScore* score = [[[GKScore alloc] initWithCategory:@"game category name"]autorelease];
score.value = totalTime*100;
[score reportScoreWithCompletionHandler:^(NSError* error)
{
if(error != NULL)
{
}
}];
It it very easy to post your score but... not much players want to even create account on GameCenter;;
I myself in My App am using both GameCenter and Cocoslive leader boards.
Result?
2000 people in cocoslive leader board.
and
2 people in GameCenter leader board including me.
Have a good day~ :p
댓글 없음:
댓글 쓰기