1

我正在使用 CCParticleSystemQuad 来模拟爆炸效果。在设备上玩 10-15 个关卡后,它崩溃了,我收到一条错误消息

Assertion failure in -[CCParticleSystemQuad initWithFile:]

并指向 CCParticleSystem.m 类NSAssert( dict != nil, @"Particles: file not found");

这是我的代码:

for(NSString *star in starsArray)
{
    explosion1 = [CCParticleSystemQuad particleWithFile:star];
    explosion1.position = sprite.position;
    explosion1.autoRemoveOnFinish=YES;
    explosion1.blendAdditive=GL_ZERO;
    [self addChild:explosion1 z:11];
    [explosion1 resetSystem];

}
4

0 回答 0