随笔分类 -  cocos2dx

摘要:AudioEngine在Android7上播放音效卡顿问题处理 阅读全文
posted @ 2017-11-22 19:40 pcwen.top 阅读(2673) 评论(0) 推荐(0) 编辑
摘要:Bugly 阅读全文
posted @ 2017-08-22 21:55 pcwen.top 阅读(1963) 评论(0) 推荐(0) 编辑
摘要:1. 需求:在所有子节点中得到是ui::Text类型的节点,并对其进行操作。 2. 解决方案:在根节点Node中有一个如下的函数: Node中默认的实现: 我们在ui::Text中找到该函数的实现如下: 修改为: 3.我们在遍历子节点时就可以知道节点的类型是不是cocos2d::ui::Text了 阅读全文
posted @ 2017-07-12 21:39 pcwen.top 阅读(2310) 评论(0) 推荐(0) 编辑
摘要:1.起因:cocos2dx打包到手机后,接收数据消息进行处理时崩溃(同一套代码在windows和centos下都能正常运行) 一个由char+short+short+short+long long组成的数据通过网络传给客户端的时候,进行反向数据类型解析还原的时候在long long的位置崩溃掉了。 阅读全文
posted @ 2016-12-23 12:31 pcwen.top 阅读(897) 评论(0) 推荐(0) 编辑
摘要:使用cocos compile -p android 对项目进行编译的时候,遇到res文件中包含了只读属性的svn目录,不能进行删除而报错。 错误如下图(build_android.py里面对.svn文件进行删除时,权限不够) 解决方法就是修改 tools\cocos2d-console\bin\c 阅读全文
posted @ 2016-11-21 20:46 pcwen.top 阅读(270) 评论(0) 推荐(0) 编辑
摘要:vs2013+cocos2dx 3.13.1 这篇博文是集成Lua版本的protobuf,集成C++版本的过程也可参考。 主要参考博文地址《cocos2dx 3.x C++搭建protobuf环境》,这里的集成方式和参考博文有点不一样(这里是直接集成到引擎中,参考博文是当成一个库放到项目中),请仔细 阅读全文
posted @ 2016-10-26 20:54 pcwen.top 阅读(8719) 评论(5) 推荐(1) 编辑
摘要:cococs2dx 3.13.1 + vs2013 + win10 1.首先按照《cocos2dx lua 绑定之一:自动绑定自定义类》绑定Student类 2.在Student类中增加一个用于测试手动绑定的函数manual_call ①Student.h中增加函数 ②Student.cpp中增加函 阅读全文
posted @ 2016-10-13 00:39 pcwen.top 阅读(2444) 评论(0) 推荐(0) 编辑
摘要:cococs2dx 3.13.1 + vs2013 + win10 1.首先定义C++类Student 在cocos2d-x\cocos文件夹下新建一个user_define的文件夹放置两个文件。 注意:这个类没有从Ref继承,是一个简单的C++类。 ①头文件Student.h ②cpp文件Stud 阅读全文
posted @ 2016-09-26 15:08 pcwen.top 阅读(4067) 评论(0) 推荐(0) 编辑
摘要:1.simulator的好处是: 快速切换分辨率;F5快速重新启动项目; 这对于脚本语言来说都是很方便快捷的。 2.涉及到显示参数的文件有两个: ①lang,这个是菜单的语言文件,如果没有这个文件的话,则上图的菜单为英文。(这个文件可以在ide-support文件夹找到,但是在3.13中去掉了这个文 阅读全文
posted @ 2016-09-15 00:05 pcwen.top 阅读(3844) 评论(1) 推荐(0) 编辑
摘要:下载新的cocos2dx 3.13,想使用simulator来运行lua项目,结果发现使用vs2013编译不通过。 1. 9>main.cpp(5): error C2146: 语法错误: 缺少“;”(在标识符“wWinMain”的前面)9>main.cpp(9): warning C4007: “ 阅读全文
posted @ 2016-09-14 11:48 pcwen.top 阅读(2248) 评论(0) 推荐(0) 编辑
摘要:Cocos2dx 3.x 屏幕适配 阅读全文
posted @ 2016-08-18 17:55 pcwen.top 阅读(4163) 评论(0) 推荐(0) 编辑
摘要:iconv编码转换 阅读全文
posted @ 2016-07-26 15:21 pcwen.top 阅读(669) 评论(0) 推荐(0) 编辑
摘要:使用cocos创建的项目,如何进行源码调试? 阅读全文
posted @ 2016-07-26 15:19 pcwen.top 阅读(1065) 评论(0) 推荐(0) 编辑
摘要:cocos2dx 在windows下开启console 阅读全文
posted @ 2016-07-20 02:10 pcwen.top 阅读(546) 评论(0) 推荐(0) 编辑
摘要:TEA加密/解密算法 阅读全文
posted @ 2016-07-18 14:55 pcwen.top 阅读(30474) 评论(6) 推荐(1) 编辑
摘要:cocos2dx spine之一 :spine变色 阅读全文
posted @ 2016-07-13 22:02 pcwen.top 阅读(6892) 评论(0) 推荐(0) 编辑
摘要:cocos2dx spine缓存 阅读全文
posted @ 2016-07-13 17:49 pcwen.top 阅读(6138) 评论(0) 推荐(0) 编辑

pcwen.top

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示