摘要:
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 阅读全文