CCLabelTTF *label = [CCLabelTTF labelWithString:@"Score : #" fontName:@"Arial" fontSize:14];
// ask director the the window size
CGSize size = [[CCDirector sharedDirector] winSize];
// position the label on the center of the screen
label.position = ccp(size.width + 0, size.height + 0);
// add the label as a child to this Layer
[self addChild: label];
label.position = ccp(size.width + 0, size.height + 0);
我将如何获得左下角的标签。我不太了解坐标系统。根据我的理解,Y是最底层的。 X离得很远。所以当我使用该代码时,标签的位置在右上角。我的应用程序是肖像。cocos2d坐标系统
还有更好的标签作为精灵,或者只是保持它那样。 (它要记分)