Particle effect-2 Custom define properties

来源:互联网 发布:旬牙利算法 编辑:程序博客网 时间:2024/05/23 21:05

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












0 0