Tutorials – Cocos2d

- In order to use the -hd files (with the AutoSD feature), check that you have enabled the retina support in your AppDelegate.m :
if( ! [director enableRetinaDisplay:YES] )
CCLOG(@”Retina Display Not supported”);

- Create a CCLabelBMFont and add it on your Layer:
CGSize size = [[CCDirector sharedDirector] winSize];
CCLabelBMFont *label = [CCLabelBMFont labelWithString:@"Preview text" fntFile:@"preview.fnt"];

// position the label on the center of the screen
label.position = ccp( size.width /2 , size.height/2 );

// add the label as a child to this Layer
[self addChild: label];

Using this method, you can create any Title or Buttons in your game, and think about multilanguage.