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); }
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); }
public override void Activate(Vector2 pos) { sinSeed = ArmadaRandom.Next(0, 5); base.Activate(pos); }