Game Development Reference
In-Depth Information
self.sourcePosition = CGPointMake(−15, 0);
self.gravity = CGPointMake(−50, -90);
self.radialAccel = −90;
self.radialAccelVar = 20;
self.tangentialAccel = 120;
self.tangentialAccelVar = 10;
self.speed = 15;
self.speedVar = 4;
}
else if (self.emitterMode == kCCParticleModeRadius)
{
self.startRadius = 100;
self.startRadiusVar = 0;
self.endRadius = 10;
self.endRadiusVar = 0;
self.rotatePerSecond = −180;
self.rotatePerSecondVar = 0;
}
self.position = CGPointZero;
self.posVar = CGPointZero;
self.positionType = kCCPositionTypeFree;
self.startSize = 40.0f;
self.startSizeVar = 0.0f;
self.endSize = kCCParticleStartSizeEqualToEndSize;
self.endSizeVar = 0;
self.angle = 0;
self.angleVar = 0;
self.life = 5.0f;
self.lifeVar = 1.0f;
self.emissionRate = 30;
self.totalParticles = 250;
startColor.r = 1.0f;
Search Nedrilad ::




Custom Search