Exemple #1
0
        public override void Shoot()
        {
            int   num1     = 25;
            float Velocity = 2.7f;

            if (this.Boss != null && this.Boss.Life >= 2)
            {
                num1     = 50;
                Velocity = 1.35f;
            }
            if (this.Time % num1 != 0)
            {
                return;
            }
            int num2 = this.Time / 2;

            if (num2 > 110)
            {
                num2 = 110;
            }
            BackgroundParticle3D1 backgroundParticle3D1 = new BackgroundParticle3D1(this.StageData, "Sakura", new PointF((float)(num2 + this.Ran.Next(30)), -80f), Velocity, 1.72079633275536, 350);

            backgroundParticle3D1.Angle          = (double)this.StageData.Ran.Next(-10, 10) * 3.14159274101257 / 180.0;
            backgroundParticle3D1.Active         = true;
            backgroundParticle3D1.MaxTransparent = 60;
            backgroundParticle3D1.Direction3D    = 0.75;
            backgroundParticle3D1.Depth          = -100f;
            backgroundParticle3D1.MaxDepth       = 1000f;
            backgroundParticle3D1.OutsideRegion  = 128;
        }
Exemple #2
0
 public override void Shoot()
 {
     if (this.Time % 20 != 0)
     {
         return;
     }
     for (int index = 0; index < 2; ++index)
     {
         BackgroundParticle3D1 backgroundParticle3D1 = new BackgroundParticle3D1(this.StageData, "Leaf", new PointF((float)this.StageData.Ran.Next(130, 700), (float)this.StageData.Ran.Next(-50, -20)), (float)this.StageData.Ran.Next(2, 4), Math.PI / 2.0 + (double)this.StageData.Ran.Next(1, 8) / 10.0, 200);
         backgroundParticle3D1.Angle             = (double)this.StageData.Ran.Next(0, 360) * 3.14159274101257 / 180.0;
         backgroundParticle3D1.AngularVelocity3D = (float)this.StageData.Ran.Next(5) / 100f;
         backgroundParticle3D1.Scale             = (float)this.StageData.Ran.Next(5, 20) / 10f;
         backgroundParticle3D1.RotatingAxis      = new Vector3((float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100));
         backgroundParticle3D1.ColorValue        = Color.FromArgb(this.StageData.Ran.Next(150, 250), (int)byte.MaxValue, this.StageData.Ran.Next(150, (int)byte.MaxValue));
     }
 }
Exemple #3
0
 public override void Shoot()
 {
     if (this.Time % 5 != 0)
     {
         return;
     }
     for (int index = 0; index < 3; ++index)
     {
         BackgroundParticle3D1 backgroundParticle3D1 = new BackgroundParticle3D1(this.StageData, "Petal3" + this.Ran.Next(4).ToString(), new PointF((float)this.StageData.Ran.Next(280, this.BoundRect.Width + 160), (float)this.StageData.Ran.Next(-20, 0)), (float)this.StageData.Ran.Next(15, 25) / 10f, Math.PI / 2.0 + (double)this.StageData.Ran.Next(1, 8) / 10.0, 200);
         backgroundParticle3D1.Angle             = (double)this.StageData.Ran.Next(0, 360) * 3.14159274101257 / 180.0;
         backgroundParticle3D1.AngularVelocity3D = (float)this.StageData.Ran.Next(10) / 100f;
         backgroundParticle3D1.Scale             = (float)this.StageData.Ran.Next(35, 50) / 100f;
         backgroundParticle3D1.RotatingAxis      = new Vector3((float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100));
         backgroundParticle3D1.MaxTransparent    = 200;
         backgroundParticle3D1.Depth             = (float)this.Ran.Next(0, 30);
     }
 }