![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cocos2d/cocos2dx
文章平均质量分 58
ShinSuo
这个作者很懒,什么都没留下…
展开
-
继承CCSprite时不要重写init方法,否则会无限循环
在Learn cocos2D Game Development with iOS 5一书中 第六章提到了A Common and Fatal Mistake 大概说的就是当继承CCSrpite对象的时候不要重写init方法,例如 @interface Ship : CCSprite { } +(id) ship; @implementation Ship +(id) s原创 2012-08-08 13:30:27 · 4079 阅读 · 0 评论 -
cocos2d中SpriteFrame和Texture
SpriteFrame是Texture+Rect,过程是这样的, Texture是通过指定图片得到的, 然后,指定用这个Texture指定具体的Rect就是SpriteFrame, SpriteFrame就是用户可以看到的CCSprite 一般SpriteFrame用在播放动画(传说中的序列帧)原创 2012-08-09 10:40:17 · 7991 阅读 · 0 评论 -
Android Emulator 不能运行cocos2dx的解决方案
这两天搞跨平台的东西,发现cocos2dx不能在模拟器上运行,在网上查了查竟然没有这样的问题,最后还是靠stackoverflow定位到cocos2dx英文论坛中,最终找到了解决方案。 1.使用的引擎版本 cocos2d-2.0-rc0a-x-2.0 2.创建一个android工程后,打开项目,比如项目名称为test,就打开test.java 修改如下(默认有detectOpenGLES20原创 2012-12-05 20:54:03 · 4783 阅读 · 0 评论