我正在使用CCParticleSystemQuad来模拟爆炸效果。在设备上播放10-15级后,它崩溃了,我收到一条错误信息
Assertion failure in -[CCParticleSystemQuad initWithFile:]
并指向CCParticleSystem.m class 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];
}