mark笔记
摘要:1.【cocos2dx】ccnode跟ccui节点混用时注意touch层级问题,基本不可控
阅读全文
posted @
2017-01-16 10:38
Kenfly
阅读(119)
推荐(0)
Cocos2d-x初探
摘要:HelloWorld初探:首选请看HelloWorld的main.cpp文件: 1 #include "main.h" 2 3 #include "../Classes/AppDelegate.h" 4 5 int APIENTRY _tWinMain(HINSTANCE hInstance, 6 HINSTANCE hPrevInstance, 7 LPTSTR lpCmdLine, 8 int nCmdShow) 9 {10 ...
阅读全文
posted @
2012-10-07 14:22
Kenfly
阅读(1935)
推荐(0)
Cocos2d学习笔记
摘要:1.CCspriteBatchNode精灵批量节点。为了节约资源,精灵的各帧动作图一般摆放在同一张图片里,CCSpriteBatchNode就是为了方便管理这张图片而生。例子:CCSpriteBatchNode*mgr =CCSpriteBatchNode::batchNodeWithFile("flight.png",5);this->addChild(mgr,0,4);CCSprite*sprite =CCSprite::spriteWithTexture(mgr->getTexture(),CCRectMake(0,0,31,30));mgr->ad
阅读全文
posted @
2012-09-28 09:54
Kenfly
阅读(298)
推荐(0)