I have no idea how to implement CocosLive into my application. Is there like a written tutorial or video or anything? Or maybe give me some steps on what to do.
Thanks,
Brian
A fast, easy to use, free, and community supported 2D game engine
I have no idea how to implement CocosLive into my application. Is there like a written tutorial or video or anything? Or maybe give me some steps on what to do.
Thanks,
Brian
There's a complete example that comes with Cocos2d.
i only see the class files O.o
Please dont post questions with generic titles like "Help".
Hi, can someone give the tutorial for this? I've tried to examine the example. But still I can't understand it. Thanks.
This is what I do.
- (void)postScore {
CLScoreServerPost *server = [[CLScoreServerPost alloc] initWithGameName:@"BurningArmor for iPhone/iPad" gameKey:@"b456cefcd3af5c21fd328ffd9c6add68" delegate:self];
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithCapacity:2];
NSString *name;
if ([[FacebookAgent sharedAgent] isLoggedIn]) {
[[FacebookAgent sharedAgent] publishFeedWithName:[NSString stringWithFormat:@"Scored %d", [[[VariableStore sharedVariableStore] player] score]]
captionText:@"Download BurningArmor now to beat his record"
imageurl:@"http://img101.imageshack.us/img101/6311/balogo.png"
linkurl:@"http://www.apple.com"
userMessagePrompt:@"What's on your mind?"];
name = [[FacebookAgent sharedAgent] getUserName];
}
else
name = @"No Name";
[dict setObject:name forKey:@"cc_playername"];
[dict setObject:[NSNumber numberWithInt:[[[VariableStore sharedVariableStore] player] score]] forKey:@"cc_score"];
[dict setObject:@"Classic" forKey:@"cc_category"];
[server updateScore:dict];
[server release];
}
It successfully posted the scores. But, it never gives the rank information. I've tried to debug it & I got result that it never execute scorePostOk method, but scorePostFail (score posted but the executed method is scorePostFail). Am I doing wrong here?
You must log in to post.