------------------------------------------------------------------ DemoFirework ------------------------------------------------------------------
| 39 | // |
| 40 | //------------------------------------------------------------------ |
| 41 | void DemoFirework::onEnter() |
| 42 | { |
| 43 | ParticleDemo::onEnter(); |
| 44 | |
| 45 | _emitter = ParticleFireworks::create(); |
| 46 | _emitter->retain(); |
| 47 | _background->addChild(_emitter, 10); |
| 48 | |
| 49 | _emitter->setTexture(Director::getInstance()->getTextureCache()->addImage(s_stars1)); |
| 50 | |
| 51 | setEmitterPosition(); |
| 52 | } |
| 53 | |
| 54 | std::string DemoFirework::subtitle() const |
| 55 | { |
nothing calls this directly
no test coverage detected