public override void Update(ParticleDataStructure particleStorage) { base.Update(particleStorage); if (roundsLeft > 0) roundsLeft--; else remove = true; }
public MAOParticleManager(Rectangle boundries, int maxPart, int particleSize, Action<Particle> perParticle) { this.perParticle = perParticle; lastRound = 0; sources = new List<Source>(); boundry = boundries; this.particleSize = particleSize; maxParticles = maxPart; particleStorage = new ParticleDataStructure(boundries.Width/particleSize, boundries.Height/particleSize, maxPart); white = FSGGame.white; }
public override void Update(ParticleDataStructure particleStorage) { base.Update(particleStorage); }
//For particles that move public virtual void Update(ParticleDataStructure particleStorage) { Vector2 newPosition = position + velocity; particleStorage.moveParticle(this, (int)newPosition.X, (int)newPosition.Y); }