emitterMode = gravity
sourcePosition
gravity
radialAccel,radialAccelVar
speed,speedVar
tangentialAccel,tangentialAccelVar
(ThetangentialAccelproperty
is similar in that it lets particlesrotate around the emitter and speed up as they move away. Negative values let theparticles spin clockwise, and positive values spin them counterclockwise. )
emitterMode = radius
startRadius,startRadiusVar,
endRadius,endRadiusVar
rotatePerSecond,rotatePerSecondVar
duration
posVar
positionType
startSize, startSizeVar, endSize, endSizeVar
angle, angleVar
life, lifeVar
emissionRate
startColor, startColorVar, endColor, endColorVar blendFunc, blendAdditive
texture
: CCParticleSystemQuad
@interface ParticleEffectSelfMade : ARCH_OPTIMAL_PARTICLE_SYSTEM
{
} @end
// build each architecture with the optimal particle system #ifdef __ARM_NEON__
// armv7
#define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemQuad #elif __arm__ || TARGET_IPHONE_SIMULATOR
// armv6 or simulator
#define ARCH_OPTIMAL_PARTICLE_SYSTEM CCParticleSystemPoint #else
#error(unknown architecture) #endif