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);
时间: 2024-10-08 12:43:25