CCSize winSize = CCDirector::sharedDirector()->getWinSize();
CCParticleSystemQuad *p = CCParticleFireworks::create();
p =CCParticleGalaxy::create();
addChild(p);
p->setPosition(ccp(winSize.width / 2, winSize.height / 2));
//人工粒子
CCMoveBy* by = CCMoveBy::create(4,ccp(winSize.width/2,0));
//循环往返
p->runAction(CCRepeatForever::create(CCSequence::create(by, by->reverse(), NULL)));
CCParticleSystemQuad *p = CCParticleFireworks::create();
p =CCParticleGalaxy::create();
addChild(p);
p->setPosition(ccp(winSize.width / 2, winSize.height / 2));
//人工粒子
CCMoveBy* by = CCMoveBy::create(4,ccp(winSize.width/2,0));
//循环往返
p->runAction(CCRepeatForever::create(CCSequence::create(by, by->reverse(), NULL)));