【发布时间】:2011-03-07 19:03:00
【问题描述】:
我找不到任何有关如何将使用粒子设计器创建的粒子系统添加到场景的文档。
所有编程指南都是这样说的:
id particleSystem = [CCParticleSystemQuad particleWithFile:@"MyParticle.plist"];
好的。然后呢? [self addChild:particleSystem];?
还有这个问题:
#import "cocos2d.h"
#import "CCParticleSystemQuad.h"
error: CCParticleSystemQuad.h: No such file or directory
【问题讨论】:
-
如果我这样做,CCParticleSystemQuad *particleSystem;抛出这个错误:error: ISO C++ forbids declaration of 'CCParticleSystemQuad' with no type
标签: iphone cocos2d-iphone particles