Skip to content

Instantly share code, notes, and snippets.

@talentless
Created November 2, 2011 15:47
Show Gist options
  • Save talentless/1333986 to your computer and use it in GitHub Desktop.
Save talentless/1333986 to your computer and use it in GitHub Desktop.
#import "TGScoreLabel.h"
-(void) setupPercentComplete {
TGScoreLabel * myScoreLabel = [TGScoreLabel scoreLabelWithFormatString:@"%d%%!" score:0 dimensions:CGSizeMake(380, 45) alignment:UITextAlignmentRight fontName:@"TacoGraveyard" fontSize:36];
myScoreLabel.position = myScoreLabelPosition;
[self addChild:myScoreLabel];
[myScore rollToScore: percentComplete];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment