Cocos2D:从字体图集显示文本的最佳方式?

时间:2012-08-15 22:02:01

标签: cocos2d-iphone

根据CCLabelAtlas的CCDirector制作,我尝试了以下内容:

scoreLabel = [[CCLabelAtlas alloc]  initWithString:@"0123456789" charMapFile:@"fps_images.png" itemWidth:8 itemHeight:12 startCharMap:'.'];
[scoreLabel setPosition:ccp(200, 200)];
[self addChild:scoreLabel];

我必须遗漏一些东西,因为没有显示。我使用的是Cocos2D提供的基本.png。

我错过了什么?谢谢!

0 个答案:

没有答案
相关问题