mirror of https://github.com/axmolengine/axmol.git
ParticleTest
This commit is contained in:
parent
931c42a621
commit
2b272e2813
|
@ -68,6 +68,16 @@ bool HelloWorld::init()
|
|||
// add the sprite as a child to this layer
|
||||
this->addChild(pSprite, 0);
|
||||
|
||||
CCParticleSystem* pTmp = CCParticleSystemQuad::particleWithFile("LavaFlow.plist");
|
||||
CCParticleBatchNode* pBatch = CCParticleBatchNode::batchNodeWithTexture(pTmp->getTexture());
|
||||
addChild(pBatch);
|
||||
pTmp->unscheduleUpdate();
|
||||
|
||||
CCParticleSystem* pSys = CCParticleSystemQuad::particleWithFile("LavaFlow.plist");
|
||||
pBatch->addChild(pSys);
|
||||
pSys->setPosition(ccp(size.width/2, size.height/2));
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
2d9494d763406ba9945e40f011820005d14b92eb
|
||||
ce13f14088361cd82d63174ca2c3134f69b1e8bb
|
Loading…
Reference in New Issue