kingBook

导航

2016年5月26日 #

cocos2d-x 3.3 显示中文

摘要: Resources文件夹下的strings.xml: 保存为UTF-8编码格式。 c++代码: 关于ttf字体的精简看文章http://www.cnblogs.com/kingBook/p/5512784.html 阅读全文

posted @ 2016-05-26 15:33 kingBook 阅读(309) 评论(0) 推荐(0) 编辑

std::function 测试

摘要: //输出:105 阅读全文

posted @ 2016-05-26 10:45 kingBook 阅读(329) 评论(0) 推荐(0) 编辑

cocos2d-x 那些常犯的错误

摘要: Label::_label; if(_label==NULL){ //初始化_label的代码 } //指针默认值不等于NULL,需要赋初始值Label::_label=NULL; string str="name is lao wang"; cocos2d::log(str);//这是错误的 cocos2d::log("%s",str);//这是错误的 cocos2d::log(str.... 阅读全文

posted @ 2016-05-26 10:27 kingBook 阅读(148) 评论(0) 推荐(0) 编辑