http://www.raywenderlich.com/25736/how-to-make-a-simple-iphone-game-with-cocos2d-2-x-tutorialのcocos2d ゲーム チュートリアルを使用しました。スコアは増加しますが、以前のスコアは削除されず、新しいスコアは以前のスコアのラベルの上に追加されます
コード:
CGSize winSize = [[CCDirector sharedDirector] winSize];
CCLabelTTF * label1 = [CCLabelTTF labelWithString:@"_monsterdestroyed" fontName:@"Arial" fontSize:32];
score=score + 2;
[label1 setString:[NSString stringWithFormat:@"%d",score]];
label1.color = ccc3(0,0,0);
label1.position = ccp(winSize.width/2, winSize.height/2);
[self addChild:label1];