コード例 #1
0
 public override void Ctrl()
 {
     base.Ctrl();
     this.Angle3D = -(float)(Math.PI / 18.0 * (1.0 - Math.Sin((double)this.Time / 30.0)));
     if (this.Boss != null)
     {
         if (this.Boss.Time > this.Boss.UnmatchedTime && this.Time > 50 && this.Boss.HitEnabled)
         {
             for (int index = this.MyBulletList.Count - 1; index >= 0; --index)
             {
                 PointF originalPosition1 = this.MyBulletList[index].OriginalPosition;
                 double y1 = (double)originalPosition1.Y;
                 originalPosition1 = this.OriginalPosition;
                 double y2 = (double)originalPosition1.Y;
                 if (y1 < y2)
                 {
                     PointF originalPosition2 = this.MyBulletList[index].OriginalPosition;
                     double x1 = (double)originalPosition2.X;
                     originalPosition2 = this.OriginalPosition;
                     double num1 = (double)originalPosition2.X - 100.0;
                     int    num2;
                     if (x1 > num1)
                     {
                         PointF originalPosition3 = this.MyBulletList[index].OriginalPosition;
                         double x2 = (double)originalPosition3.X;
                         originalPosition3 = this.OriginalPosition;
                         double num3 = (double)originalPosition3.X + 100.0;
                         num2 = x2 >= num3 ? 1 : 0;
                     }
                     else
                     {
                         num2 = 1;
                     }
                     if (num2 == 0)
                     {
                         if (this.Boss.Time > this.Boss.UnmatchedTime)
                         {
                             this.Boss.HealthPoint -= (float)((double)this.MyBulletList[index].Damage * (1.0 - (double)this.Boss.Armon) / 3.0);
                         }
                         this.MyBulletList[index].GiveEndEffect();
                         this.MyBulletList.RemoveAt(index);
                         this.MyPlane.Score += 100L;
                     }
                 }
             }
         }
         if (this.Boss.Life < this.lastlife)
         {
             this.LifeTime            = this.Time + 10;
             this.TransparentVelocity = -25f;
             this.lastlife            = this.Boss.Life;
         }
     }
     if (this.Time != this.LifeTime)
     {
         return;
     }
     BulletPicEmitter.ShootItem(this.StageData, "WingItem.png", this.OriginalPosition, 10f);
 }
コード例 #2
0
 public static void ShootBulletPic01(
     StageDataPackage StageData,
     bool[,] BulletPic,
     string BulletName,
     PointF OriginalPosition,
     double Direction,
     byte ColorType,
     float Scale,
     float bigger)
 {
     BulletPicEmitter.ShootBulletPic01(StageData, BulletPic, BulletName, OriginalPosition, 1f, Direction, ColorType, Scale, bigger);
 }