CCParticleSystemQuadのサブクラスを作成し、update:メソッドまたはupdateQuadWithParticle:newPosition:メソッドをオーバーライドします。
@interface MyParticleSystem : CCParticleSystemQuad
@end
@implementation MyParticleSystem
- (void)updateQuadWithParticle:(tCCParticle*)particle newPosition:(CGPoint)pos
{
/* use pos */
[super updateQuadWithParticle:particle newPosition:pos];
}
@end
編集:
パーティクルには、次のように任意のデータ(位置、色など)を設定できます。
@interface MyParticleSystem : CCParticleSystemQuad
@end
@implementation MyParticleSystem
- (void)update:(ccTime)dt
{
/* implement as cocos2d/CCParticleSystem.m -update: */
}
@end