cocos2dx 文本分行显示
2014-01-13 16:18
477 查看
string info = "Hungry Hero is a free and open source game built on Adobe Flash using Starling Framework.\n\nhttp://www.hungryherogame.com\n\n" " The concept is very simple. The hero is pretty much always hungry and you need to feed him with food." " You score when your Hero eats food.\n\nThere are different obstacles that fly in with a \"Look out!\"" " caution before they appear. Avoid them at all costs. You only have 5 lives. Try to score as much as possible and also" " try to travel the longest distance."; aboutInfo = LabelTTF::create(info,"微软雅黑",28,Size(500,500),TextHAlignment::LEFT);
相关文章推荐
- cocos2dx游戏开发触摸中的陷阱
- 基于Cocos2d-x游戏引擎实战开发炸弹超人
- cocos2d-x 中使用tolua++来导入自己编写的C++ 类
- cocos2d-x 通过python模板方式新建支持lua的工程
- CCLabelTTF之换行
- cocos2dx环境配置及打包apk
- cocos2dx一tab选项卡的实现
- 【cocos2d-x入门实战】微信飞机大战来袭!
- JniHelper调用java静态和非静态方法总结(即cocos2dx中调用android平台下显示第三方广告)
- cocos2d-x 通过JNI实现c/c++和Android的java层函数互调
- cocos2d-x-3.0beta使用Python 创建Cocos2d-x 项目和编译Android 项目
- cocos2d-x Ubuntu安装
- Cocos2d-x3.0(一)Cocos2d-x3.0简介以及创建新的Cocos2d-x跨平台工程
- cocos2dx Beta 使用动画
- [cocos2d-x]对CCSprite进行高斯模糊
- [cocos2d-x]对CCSprite进行高斯模糊
- 【cocos2d-x】对CCSprite进行高斯模糊
- cocos2dx Beta 版中使用 cocostudio
- Cocos2d-x 3.X CMake MinGW版本编译运行
- 【Cococs2d-x】通过TexturePacker加密图片资源(Cocos2d-x方式)