示例#1
0
 public override void Ctrl()
 {
     base.Ctrl();
     if (Time < 90)
     {
         return;
     }
     if (Time == 90)
     {
         StageData.SoundPlay("se_nep00.wav");
         StageData.SoundPlay("se_spell.wav");
         StageData.VibrateStart(300);
         PointF     OriginalPosition = new PointF(this.OriginalPosition.X, this.OriginalPosition.Y + 70f);
         PlaneSpark planeSpark1      = new PlaneSpark(StageData, "Master Spark", OriginalPosition, 0.0f, -1.0 * Math.PI / 2.0)
         {
             MaxScaleW = 1f,
             MaxScaleL = 3f
         };
         planeSpark1.SetBinding(this);
         PlaneSpark planeSpark2 = new PlaneSpark(StageData, "Master Spark", OriginalPosition, 0.0f, -1.0 * Math.PI / 2.0)
         {
             MaxScaleW = 1.6f,
             MaxScaleL = 3f
         };
         planeSpark2.SetBinding(this);
         PlaneSpark planeSpark3 = new PlaneSpark(StageData, "Master Spark", OriginalPosition, 0.0f, -1.0 * Math.PI / 2.0)
         {
             MaxScaleW = 2.2f,
             MaxScaleL = 3f
         };
         planeSpark3.SetBinding(this);
     }
     if (Time == LifeTime - 30)
     {
         Damage = 20;
     }
     if ((double)MyPlane.Position.Y >= BoundRect.Bottom)
     {
         return;
     }
     MyPlane.Position = new PointF(MyPlane.Position.X, MyPlane.Position.Y + 8f);
 }
示例#2
0
 public override void Ctrl()
 {
     base.Ctrl();
     if (this.Time < 90)
     {
         return;
     }
     if (this.Time == 90)
     {
         this.StageData.SoundPlay("se_nep00.wav");
         this.StageData.SoundPlay("se_spell.wav");
         this.StageData.VibrateStart(300);
         PointF     OriginalPosition = new PointF(this.OriginalPosition.X, this.OriginalPosition.Y + 70f);
         PlaneSpark planeSpark1      = new PlaneSpark(this.StageData, "Master Spark", OriginalPosition, 0.0f, -1.0 * Math.PI / 2.0);
         planeSpark1.MaxScaleW = 1f;
         planeSpark1.MaxScaleL = 3f;
         planeSpark1.SetBinding((BaseObject)this);
         PlaneSpark planeSpark2 = new PlaneSpark(this.StageData, "Master Spark", OriginalPosition, 0.0f, -1.0 * Math.PI / 2.0);
         planeSpark2.MaxScaleW = 1.6f;
         planeSpark2.MaxScaleL = 3f;
         planeSpark2.SetBinding((BaseObject)this);
         PlaneSpark planeSpark3 = new PlaneSpark(this.StageData, "Master Spark", OriginalPosition, 0.0f, -1.0 * Math.PI / 2.0);
         planeSpark3.MaxScaleW = 2.2f;
         planeSpark3.MaxScaleL = 3f;
         planeSpark3.SetBinding((BaseObject)this);
     }
     if (this.Time == this.LifeTime - 30)
     {
         this.Damage = 20;
     }
     if ((double)this.MyPlane.Position.Y >= (double)this.BoundRect.Bottom)
     {
         return;
     }
     this.MyPlane.Position = new PointF(this.MyPlane.Position.X, this.MyPlane.Position.Y + 8f);
 }