11 种粒子特效
不和小胖周旋了,直接来吧!!小胖闭嘴
(旁白:)
那就开始吧
//爆炸粒子效果
CCParticleSystem* particleSystem = CCParticleExplosion::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("stars.png"));
this->addChild(particleSystem);
//火焰粒子效果
CCParticleSystem* particleSystem = CCParticleFire::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
//烟花粒子效果
CCParticleSystem* particleSystem = CCParticleFireworks::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
//星系粒子效果
CCParticleSystem* particleSystem = CCParticleGalaxy::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
//流星粒子效果
CCParticleSystem* particleSystem = CCParticleMeteor::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
//下雨粒子效果
CCParticleSystem* particleSystem = CCParticleRain::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
//烟雾粒子效果
CCParticleSystem* particleSystem = CCParticleSmoke::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
//下雪粒子效果
CCParticleSystem* particleSystem = CCParticleSnow::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("snow.png"));
this->addChild(particleSystem);
//漩涡粒子效果
CCParticleSystem* particleSystem = CCParticleSpiral::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
//太阳粒子效果
CCParticleSystem* particleSystem = CCParticleSun::create();
particleSystem->setTexture(CCTextureCache::sharedTextureCache()->addImage("fire.png"));
this->addChild(particleSystem);
自己琢磨吧