iphonecocos2d-iphoneccparticlesystem

Cocos2D 2.0 removed ARCH_OPTIMAL_PARTICLE_SYSTEM, How can I create pointparticles?


I am upgrading my Cocos2D game to Cocos2D 2.0-rc23. I found Cocos2D 2.0 removed ARCH_OPTIMAL_PARTICLE_SYSTEM.

" [FIX] Particle: Handles premultipled images correctly

Fixed possible memory leak when changing textures.
Examples: Removed ARCH_OPTIMAL_PARTICLE_SYSTEM since PointParticle is no longer supported

"

In my current code.

CCParticleSystem *emitter = [ARCH_OPTIMAL_PARTICLE_SYSTEM particleWithFile:@"ps.plist"];

How can I change this?


Solution

  • Trying using CCParticleSystemQuad instead:

    CCParticleSystem *emitter = [CCParticleSystemQuad particleWithFile:@"ps.plist"];