0

私は使っている this->schedule( schedule_selector(HelloWorld::Game), 0.01);

私のゲームプレイ機能では、次のコードが原因でゲームが遅くなります

CCTexture2D* texture = CCTextureCache::sharedTextureCache()->textureForKey("CloseSelected.png");
                CCParticleExplosion* firework = CCParticleExplosion::create();
                firework->setTexture(texture);
                firework->setPosition(ccp(((CCSprite *) shipLaser)->getPositionX(),((CCSprite *) shipLaser)->getPositionY()));
addChild(firework);

爆発効果が発生するたびに、ゲームは遅くなります。

  1. 別のことは、爆発の半径をどのように減らすことができますか? ありがとう
4

0 に答える 0