Exemplo n.º 1
0
 public override void Shoot()
 {
     if (this.Time != 1)
     {
         return;
     }
     for (int index = 0; index < 50; ++index)
     {
         Particle3D1 particle3D1 = new Particle3D1(this.StageData, "Effect-1", this.OriginalPosition, (float)this.Ran.Next(50, 130) / 10f, (double)this.Ran.Next(360) / 180.0 * 3.14159274101257, 30 + this.StageData.Ran.Next(50));
         particle3D1.Direction3D       = (double)this.StageData.Ran.Next(0, 60) * 3.14159274101257 / 180.0;
         particle3D1.Angle             = (double)this.StageData.Ran.Next(0, 360) * 3.14159274101257 / 180.0;
         particle3D1.AngularVelocity3D = (float)this.StageData.Ran.Next(10, 18) / 100f;
         particle3D1.Scale             = (float)this.StageData.Ran.Next(20, 30) / 10f;
         particle3D1.RotatingAxis      = new Vector3((float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100));
         particle3D1.ColorValue        = this.ColorValue;
     }
 }
Exemplo n.º 2
0
 public override void Shoot()
 {
     if (this.Time % 2 != 0)
     {
         return;
     }
     for (int index = 0; index < 2; ++index)
     {
         double      num1          = (double)this.Ran.Next(360) / 180.0 * Math.PI;
         int         num2          = this.Ran.Next(150, 200);
         Particle3D1 particle3D1_1 = new Particle3D1(this.StageData, "Effect-1", new PointF(this.OriginalPosition.X + (float)num2 * (float)Math.Cos(num1), this.OriginalPosition.Y + (float)num2 * (float)Math.Sin(num1)), 0.0f, num1 + Math.PI, this.Ran.Next(50, 80));
         particle3D1_1.Angle             = (double)this.StageData.Ran.Next(0, 360) * 3.14159274101257 / 180.0;
         particle3D1_1.AngularVelocity3D = (float)this.StageData.Ran.Next(10, 18) / 100f;
         particle3D1_1.Scale             = (float)this.StageData.Ran.Next(30, 40) / 10f;
         particle3D1_1.RotatingAxis      = new Vector3((float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100), (float)this.StageData.Ran.Next(-100, 100));
         particle3D1_1.ColorValue        = this.ColorValue;
         Particle3D1 particle3D1_2 = particle3D1_1;
         particle3D1_2.Velocity   = 2f * (float)num2 / (float)particle3D1_2.LifeTime;
         particle3D1_2.Accelerate = -particle3D1_2.Velocity * particle3D1_2.Velocity / (float)(2 * num2);
         particle3D1_2.LifeTime  -= 15;
     }
 }