introducing game center in cocos2d
I am new in inserting the gamecenter and openfient in my game,
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameCenterOverview/GameCenterOverview.html#//apple_ref/doc/uid/TP40008304-CH5-SW7
through this link, I can't underst开发者_高级运维and that how can I implement gameCenter in my app..
If you have any tutorial then plz share it to me.
You must ask yourself what features you want from gamecenter.. achievements? leaderboards? multiplayer? I assume that you dont like to read wall of texts(me too) but there are no shortcuts..
Very easy to implement.. Just add the gamecenter framework. Click on the frameworks in your project and select existing frameworks to select GameKit and you are ready to use it. Remember to import gamekit as well.
First step is always authenticate the player to check his gamecenter account.. which is in this link: link..
Openfeint, they have their own set of documentation.. And you may want to consider openfeint as they have build in gamecenter support as well..
[GKAchievement resetAchievementsWithCompletionHandler:^(NSError *error)
{
if(error == nil)
{
NSLog(@"reset");
}
else
{
NSLog(@"failed");
}
}
精彩评论