cocos2d_粒子特效二


cocos2d_粒子特效二_第1张图片

+(id) particleWithFile:(NSString*)plistFile;

-(id) initWithFile:(NSString*) plistFile;




CCTextureCache

+ (CCTextureCache *) sharedTextureCache;

-(CCTexture2D*) addImage:(NSString*) fileimage;


使用缺省粒子特效

CCParticleSystem *snow= [CCParticleSnow node];

snow.texture = [[CCTextureCachesharedTextureCache] addImage:@"snow.png"];

[self addChild:snow];


cocos2d_粒子特效二_第2张图片



CCParticleSystemQuad
使用了ARMNEON图形GPU芯片特性

CCParticleSystemPointARM老式CPU


使用粒子设计器产生plist

CCParticleSystem *system =[ARCH_OPTIMAL_PARTICLE_SYSTEM

particleWithFile:@"bird-explosion.plist"];

system.positionType = kCCPositionTypeFree;

system.autoRemoveOnFinish = YES;






你可能感兴趣的:(cocos2d_粒子特效二)