摘要:
通过.plist创建,warrior.plist和warrior.pvr.ccz 可以通过TexturePacker 工具生成,个人比较推荐这种方法。 CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("warrior.plist"); CCSpriteBatchNode* spriteBatch = CCSpriteBatchNode::create("warrior.pvr.ccz"); this->addChild(spriteBatch); .. 阅读全文