Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }