您的位置:首页 > 移动开发 > Cocos引擎

cocos2d_粒子特效二

2013-08-25 21:04 281 查看


+(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];



CCParticleSystemQuad

使用了ARMNEON图形GPU芯片特性

CCParticleSystemPointARM老式CPU

使用粒子设计器产生plist

CCParticleSystem *system =[ARCH_OPTIMAL_PARTICLE_SYSTEM

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

system.positionType = kCCPositionTypeFree;

system.autoRemoveOnFinish = YES;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: