1、粒子特效
CCParticleSystem*sp = CCParticleSnow::create();
sp->setTexture(CCTextureCache::sharedTextureCache()->addImage("f.png"));
this->addChild(sp);
2、Plist文件
CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("all.plist");
cannon = CCSprite::createWithSpriteFrameName(cannonPath);
版权声明:本文博主原创文章。博客,未经同意不得转载。