上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页
摘要: 接入文档 接SDK:https://github.com/chukong/cocos-docs/blob/master/manual/framework/html5/jsb/plugin-x/how-to-write-your-own-plugin-for-android/zh.md 用SDK... 阅读全文
posted @ 2016-04-05 21:52 Anzhongliu 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Plugin-X 在android下的整合 集成第三方SDK 环境需求 python 2.7。 http://www.python.org/ Apache Ant build tool. http://ant.apache.org/ 如果你的操作系统是Windsws,你需要安装Cygw... 阅读全文
posted @ 2016-04-05 21:44 Anzhongliu 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 亲爱的朋友,也许你在网上下载一些项目运行时,发现到处都是错误,仔细一看发现是中文注释在作怪。我在想是否是文本的格式不对,导致中文注释不能通过编译。我想到了一个方法验证了这个原因! 在UIEdit打开文本,然后另存为UTF—8的格式,保存一下,再一次编译就没问题了。 如图: ... 阅读全文
posted @ 2016-04-05 20:54 Anzhongliu 阅读(773) 评论(0) 推荐(0) 编辑
摘要: cocos2dx全屏抖动,个别对象抖动 [cpp] view plain copy /** desc:让指定控件抖动 一个CCNode同时执行多个CCShake动作,或者一个CCShake没有完又执行一个CCShake的话就会出现问题,会出现偏移的现象! ... 阅读全文
posted @ 2016-04-02 20:25 Anzhongliu 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 在dos建Cocos工程的朋友们注意啦,虽然这方式比以前更方便。但每一步都不能出错! Cocos new npb -p npb -l cpp -d projects 的命令方式时,就会出现这样的错误:Application package 'AndroidManifest.xml' must... 阅读全文
posted @ 2016-03-27 05:22 Anzhongliu 阅读(351) 评论(0) 推荐(0) 编辑
摘要: getchar(); 该条代码插在任何代码之前,都会在日志里显示输出的方法! 阅读全文
posted @ 2016-03-19 23:13 Anzhongliu 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 昨天在执行程序时,碰到两行一模一样的代码,一个能正常编译过,另一个则不行!原因是另一个是由于后面有中文注释,所以导致不能通过。把中文注释去掉之后,程序能正常运行起来! 01异常 AppDelegate(); // 构造函数 virtual ~AppDelegate(); //析构函数 02... 阅读全文
posted @ 2016-03-14 02:26 Anzhongliu 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 在要调式的代码上面或下面添加代码:system("pause");即可,当程序执行到该行时,就会弹出cmd窗口;可以判断bug在什么地方。 阅读全文
posted @ 2016-03-14 02:19 Anzhongliu 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1. playBackgroudMusic() playBackgroudMusic 只适合播放持续时间比较长的声音文件,比如背景音乐。 [html] view plain copy print? bool PlayMusic::init() { if ... 阅读全文
posted @ 2016-03-12 21:18 Anzhongliu 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 在cocos2dx中封装好了观察者NotificationCenter,这个使用的非常广泛,在2.x中我已做描述,由于3.x的升级,用法有了轻微的改变,所以说一下: 注册观察者: NotificationCenter::getInstance()->addObserver(this, ... 阅读全文
posted @ 2016-03-12 20:39 Anzhongliu 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 39 下一页