私は整数のハイスコアを持っています。しかし、それを最大限に保存して画面に表示する方法がわかりません。
これは私のコードです、助けてくれてありがとう。
-(void)aggiungiPunti
{
punteggio = punteggio +0001;
[labelPunteggio setString:[NSString stringWithFormat:@"%d", punteggio]];
}
そして、init メソッドでは:
labelPunteggio = [CCLabelTTF labelWithString:@"0000" fontName:@"Marker Felt" fontSize:13];
labelPunteggio.position = ccp(30, altezzaSchermo -15);
[self addChild:labelPunteggio];