예제 #1
0
        private void calcStuff()
        {
            sinSeed = ArmadaRandom.Next(0, 5);
            wobble  = ArmadaRandom.NextFloat(10, 10, 50);
            if (sinSeed == 1)
            {
                _FlipY = true;
            }
            else if (sinSeed == 2)
            {
                _FlipX = true;
            }
            else if (sinSeed == 3)
            {
                _FlipX = true;
                _FlipY = true;
            }
            else if (sinSeed == 4)
            {
                _Rotation = MathHelper.ToRadians(90);
            }
            else if (sinSeed == 5)
            {
                _Rotation = MathHelper.ToRadians(-90);
            }
            fallSpeed = 100f + ArmadaRandom.Next(-10, 50);
            scaleSeed = ArmadaRandom.Next(0, 5);
            spinDir   = ArmadaRandom.Next(0, 2);

            YsizeBonus = ArmadaRandom.NextFloat(10, 0, 5);

            XsizeBonus = ArmadaRandom.NextFloat(10, 0, 5);
        }
예제 #2
0
 public override void Activate(Vector2 pos)
 {
     sinSeed   = ArmadaRandom.Next(0, 5);
     fallTime  = 0;
     makeFish  = false;
     HatchTime = ArmadaRandom.NextDouble(10, 38, 50);
     yLanding  = ArmadaRandom.Next(425, 480);
     base.Activate(pos);
 }
예제 #3
0
        public override void Activate(Vector2 pos)
        {
            sinSeed = ArmadaRandom.Next(0, 5);

            base.Activate(pos);
        }