摘要:
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
阅读(282)
推荐(0)
编辑