Have fun~ :p
#import "CLScoreServerPost.h"
-(void) postScore:(NSString*)userName{
CLScoreServerPost *server = [[CLScoreServerPost alloc]initWithGameName:@"Mayday Timeattack" gameKey:@"game key from cocoslive"delegate:self];
NSMutableDictionary *dict = [NSMutableDictionarydictionaryWithCapacity:3];
[dict setObject: [NSNumber numberWithInt:(int)(totalTime*100)]forKey:@"cc_score"];
[dict setObject:userName forKey:@"cc_playername"];
[server updateScore:dict];
}
-(void) scorePostOk: (id) sender
{
}
-(void) scorePostFail: (id) sender
{
}
Getting scores from cocoslive will be coming tomorrow~ :p
답글삭제