public override void Update(Microsoft.Xna.Framework.GameTimerEventArgs e) { if (particleEffectDelay++ >= 10) { particleEffectDelay = 0; particleManager.CreateParticleEffect(10, new Vector3(random.Next(-400, 400), random.Next(-200, 200), random.Next(0, 0)), random.Next(10), new Color((float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble())); } base.Update(e); }
public override void Update(Microsoft.Xna.Framework.GameTimerEventArgs e) { if (particleEffectDelay++ >= 1) { particleEffectDelay = 0; particleManager.CreateParticleEffect(25, new Vector3(random.Next(-400, 400), random.Next(-200, 200), random.Next(0, 0)), random.Next(50), new Color((float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble())); } audioManager.PlaySong("BasicDrumBeat", true); base.Update(e); }