드디어 안드로이드 버전으로 포팅완료!! 

 

내 블로그니까 맘대로 올리기 ㅋㅋ 

다른데 홍보성 글을 올리는게 여간 눈치보이는 게 아니어서 말이지 ㅎㅎ

이 글 보신 분들은 반드시 받으시길 ㅋㅋ

 

 

 

Android: https://play.google.com/store/apps/details?id=com.magmon.DoodleGirls

iOs: https://itunes.apple.com/app/id547616945?mt=8


신고
Posted by ParkPill 박필


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





신고
Posted by ParkPill 박필

I was gonna post it tomorrow but i decided to post it right now. why?

cause i dont have anything to do right now :p

Get to the point!

#import "CLScoreServerPost.h"


-(void) requestGlobalScore

{


    CLScoreServerRequest *request = [[CLScoreServerRequest alloc] initWithGameName:@"Mayday Timeattack" delegate:self];

  

    

    [request requestScores:kQueryAllTime limit:10 offset:currentScore flags:kQueryFlagIgnore];


    [request release];

}

 

-(void) scoreRequestOk: (id) sender

{

    NSArray *scores = [sender parseScores]; 

    NSMutableArray * serverScore = [NSMutableArray arrayWithArray:scores];

}
 
 


Try the above lines then you will be find. 

If you have any questions, reply~




신고
Posted by ParkPill 박필

Try the following then you will find no problem with it!  

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 = [NSMutableDictionary dictionaryWithCapacity: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

{


}



If you have any question, reply~





신고
Posted by ParkPill 박필
Straight to the point!

Go the following site

http://zwoptexapp.com/flashversion


1. File - Import Images 
2. Arrange - By Name & Height
3. File - Export Coordinates

That is all.

Pretty easy, huh?

Have a good day~
신고
Posted by ParkPill 박필

In other language we use the following.

CGPoint a, b;
if(a == b)
 
 
But in the objective c manner it is like this.

CGPoint location;
CGPoint lastPoint; 


if (CGPointEqualToPoint(location, lastPoint)) {


    }

 
pretty straight forward.

Have a good day. 
신고
Posted by ParkPill 박필
CGPoint a, b;
if(a == b)
이게 안되서 찾아보니 함수를 써야하는군 ㅎ

if (CGPointEqualToPoint(location, lastPoint)) {


    }

 
끝! 
신고
Posted by ParkPill 박필
Straight to the point.

When get "This game is not recognized by Game Center" alert view when you are trying to add Game Center in you app on the device

but works on the simulator, well you are in no problem.

Just remove your app from the device and run on the device again.

It will work. Just got the problem and solved this problem after looked at this thread.

Thanks to Paul.


and now small talk :p

i used cocos2d and cocoslive for my game.

But i decided to go for Game Center.

I haven't tried the "Campaign" from the admob site but i will try it layer.

Anyway looks like somehow they promote itself by "friends thing".

So.. i will update it with Game Center and see how it goes :p

Good day guys~ 
신고
Posted by ParkPill 박필


티스토리 툴바