예제 #1
0
 public void Control(Form1 f)
 {
     timer--;
     if (timer <= 0)
     {
         f.RequestDeletion(this);
     }
     else if (this.timer < 25)
     {
         this.xscale         -= 0.04;
         this.yscale         -= 0.04;
         this.collisionRange -= 18.0 / 25;
     }
     else if (this.timer > 275 && timer < 300)
     {
         this.xscale         += 0.04;
         this.yscale         += 0.04;
         this.collisionRange += 18.0 / 25;
     }
     else if (this.timer == 300)
     {
         this.currentColor   = this.body;
         this.xscale         = 0;
         this.yscale         = 0;
         this.collisionRange = 0;
     }
     else if (this.timer > 300)
     {
         this.currentColor = Color.FromArgb((int)(127.5 * (Math.Cos((double)(this.timer - 500) / 10) + 1)), 255, 0, 0);
     }
 }