Esempio n. 1
0
        protected virtual void BatchDraw(Microsoft.Xna.Framework.Graphics.SpriteBatch batch)
        {
            rnd.Reinitialise(seed);
            r1 = (float)rnd.NextDouble();
            r2 = (float)rnd.NextDouble();
            r3 = (float)rnd.NextDouble();

            for (int i = 0; i < particleCount; i++)
            {
                r0 = (float)rnd.NextDouble();
                ParticleDraw(i, batch);
                r3 = r2;
                r2 = r1;
                r1 = r0;
            }
        }
Esempio n. 2
0
        public HitFactoryMania(HitObjectManager hitObjectMananager)
            : base(hitObjectMananager)
        {
            // scroll speed should not be set by difficuly calc
            if (hitObjectManager.spriteManager != null)
            {
                // the scroll speed is only owned if we're playing, or watching autoplay
                bool owned = !InputManager.ReplayMode || (InputManager.ReplayScore != null && ModManager.CheckActive(InputManager.ReplayScore.EnabledMods, Mods.Autoplay));
                SpeedMania.ResetSpeed(owned);
            }

            int seed = (int)Math.Round(hitObjectManager.Beatmap.DifficultyHpDrainRate + hitObjectManager.Beatmap.DifficultyCircleSize)
                       * 20 + (int)(hitObjectManager.Beatmap.DifficultyOverall * 41.2) + (int)Math.Round(hitObjectManager.Beatmap.DifficultyApproachRate);

            random.Reinitialise(seed);
            randomSync.Reinitialise(seed);

            prevNotes = new List <int>(prevCount);
            record(Vector2.Zero, 0);
            prevRow = new bool[StageMania.ColumnsWithMods(hitObjectManager.Beatmap, hitObjectManager.ActiveMods)];
        }
 public void ReinitialiseRandom(int seed)
 {
     random.Reinitialise(seed);
 }