Cocos2dx CCLabelAtlas字体与CCLabelTTF字体的使用方法
来源:互联网 发布:质量不错的女装淘宝店 编辑:程序博客网 时间:2024/04/28 16:42
1.26、字体
1、CCLabelAtlas字体
示例代码:
CCLabelAtlas*LBsocre4 = CCLabelAtlas::create(CCString::createWithFormat("%d", c)->getCString(), "labelatlasimg.png", 24, 32,'0');
LBsocre4->setAnchorPoint(ccp(0,0.5));
LBsocre4->setPosition(ccp(200,200));
LBsocre4->setScale(0.7f);
LBsocre4->setString(CCString::createWithFormat("%d", c)->getCString());
this->addChild(LBsocre4,5);
2、CCLabelTTF字体
示例代码:
CCLabelTTF*scoreLab = CCLabelTTF::create("0", "Arial", 35);
scoreLab->setPosition(ccp(a,b));
scoreLab->setAnchorPoint(ccp(0, 1));
scoreLab->setColor(ccc3(255,255,0));
scoreLab->setString(CCString::createWithFormat("%d", c)->getCString());
this->addChild(scoreLab, 2);
- Cocos2dx CCLabelAtlas字体与CCLabelTTF字体的使用方法
- cocos2dx CCLabelTTF自定义字体的使用
- cocos2dx CCLabelTTF 字体自动换行
- cocos2dx之文本渲染(CCLabelAtlas,CCLableBMFont,CCLabelTTF)
- Cocos2dx 学习笔记24 CCLabelTTF ,CCLabelBMFont,CCLabelAtlas
- cocos2d-x的自定义字体之CCLabelAtlas
- cocos2d-x的自定义字体之CCLabelAtlas
- CCLabelAtlas-显示自定义字体的文本-Cocos2d
- cocos2dx的CCLabelTTF类使用不同的TTF字库时字体没有变化的问题
- CCLabelTTF上的字体居中显示
- cclabelttf字体不显示的解决办法
- cocos2dx添加文本的三种方法及适用情况CCLabelTTF,CCLabelBMFont,CCLabelAtlas
- cocos2dx添加文本的三种方法及适用情况CCLabelTTF,CCLabelBMFont,CCLabelAtlas
- cocos2dx添加文本的三种方法及适用情况CCLabelTTF,CCLabelBMFont,CCLabelAtlas
- cocos2dx添加文本的三种方法及适用情况CCLabelTTF,CCLabelBMFont,CCLabelAtlas
- cocos2dx添加文本的三种方法及适用情况CCLabelTTF,CCLabelBMFont,CCLabelAtlas
- cocos2dx添加文本的三种方法及适用情况CCLabelTTF,CCLabelBMFont,CCLabelAtlas
- cocos2dx添加文本的三种方法及适用情况CCLabelTTF,CCLabelBMFont,CCLabelAtlas
- C++动态内存和类
- bcm43xx Driver
- uvaoj 11029 Leading and Trailing 取log和快速幂
- JSP与JavaBean的使用
- 织梦DedeCMSv5.7里"function='Html2Text(@me)"的用法
- Cocos2dx CCLabelAtlas字体与CCLabelTTF字体的使用方法
- poj1125 (floyd)
- Android涂鸦的实现
- Objective-C
- gcc源代码分析的方法【总结】
- Python GUI
- DedeCMS内容页添加"相关文章"功能
- windows driver 定时器的使用
- gradle学习(9)-获取build相关信息