随笔分类 -  cocos2d-x

摘要:box2d dynamic treedynamic tree 是一颗 full binary trees, 即非叶子节点必须有两个子节点(注:full binary trees和大学老师讲的满二叉树,完全二叉树不同)那么如果构建树?先看源码 while (m_nodes[index].IsLeaf(... 阅读全文
posted @ 2015-06-20 19:00 light_world 阅读(1080) 评论(0) 推荐(0)
摘要:在安卓和ios平台上可通过信号处理方式,在崩溃时打印Lua堆栈信息,方便分析bugstatic void dumpHandler(int cause, siginfo_t * info, void *uap){ CCLOG("Crash dump:"); CCLuaEngine* pEn... 阅读全文
posted @ 2015-04-25 23:41 light_world 阅读(1110) 评论(0) 推荐(1)