
cosos2d-x
辛子未
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
format not a string literal and no format arguments [-Werror=format-security]
问题: 在使用ndk-r9版本的ndk-build命令编译jni时,报错error: format not a string literal and no format arguments [-Werror=format-security]原因: Android-ndk-r9与Eclipse的版本不兼容问题。解决方案:转载 2016-09-09 17:32:02 · 382 阅读 · 0 评论 -
内存管理CCTextureCache::sharedTextureCache()->dumpCachedTextureInfo();
CCTextureCache::sharedTextureCache()->dumpCachedTextureInfo();当你调用这些代码并且在DEBUG模式运行你的游戏的时候,你将会看到一些格式化的log信息Cocos2d: cocos2d: "cc_fps_images" rc=5 id=3 256 x 32 @ 16 bpp => 16 KBCocos2d: cocos2d: "XXX/h转载 2016-08-19 16:23:57 · 1638 阅读 · 0 评论 -
Error处置:Invalid arguments ' Candidates are: void * memcpy(void * const void * ?)
http://blog.youkuaiyun.com/donglynn/article/details/25242459Error处理:Invalid arguments ' Candidates are: void * memcpy(void *, const void *, ?)Error处理:Invalid arguments ' Candidates are:转载 2016-09-21 10:15:39 · 974 阅读 · 0 评论 -
APP_ABI := armeabi armeabi-v7a x86
APP_ABI := armeabi armeabi-v7a x86原创 2016-11-03 15:20:35 · 2016 阅读 · 0 评论 -
瓦片地图
//返回图层尺寸的大小virtual const CCSize & getLayerSize (void) //设置图层尺寸的大小virtual void setLayerSize (const CCSize &var)//返回砖块尺寸的大小virtual const CCSize & getMapTileSize (void)//设置砖块尺寸的大小virtual void setMa原创 2017-03-27 16:04:57 · 332 阅读 · 0 评论 -
cocos 动画
int tempFramesNum = 4;// 帧数float timeFrames = 0.2;// 帧率{CCArray* arrayFrames = CCArray::createWithCapacity(tempFramesNum);for(int i = 1; i {char framName[40]="0";sprintf(framName,"lo原创 2017-03-25 16:37:57 · 396 阅读 · 0 评论