diff --git a/HelloWorld/Classes/HelloWorldScene.cpp b/HelloWorld/Classes/HelloWorldScene.cpp index ed64ec4220..2926807222 100644 --- a/HelloWorld/Classes/HelloWorldScene.cpp +++ b/HelloWorld/Classes/HelloWorldScene.cpp @@ -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; } diff --git a/HelloWorld/ios/HelloWorld.xcodeproj/project.pbxproj.REMOVED.git-id b/HelloWorld/ios/HelloWorld.xcodeproj/project.pbxproj.REMOVED.git-id index 8894e9c69d..ecb49f312f 100644 --- a/HelloWorld/ios/HelloWorld.xcodeproj/project.pbxproj.REMOVED.git-id +++ b/HelloWorld/ios/HelloWorld.xcodeproj/project.pbxproj.REMOVED.git-id @@ -1 +1 @@ -2d9494d763406ba9945e40f011820005d14b92eb \ No newline at end of file +ce13f14088361cd82d63174ca2c3134f69b1e8bb \ No newline at end of file