private void BombTimer_Tick(object sender, EventArgs e)
 {
     if (bomb3tick == 4)
     {
         BombTimer.Stop();
         expload.controls.play();
         explosion1.Visible  = true;
         explosion2.Visible  = true;
         explosion3.Visible  = true;
         explosion4.Visible  = true;
         explosion1.Location = new Point(bomb.Location.X, bomb.Location.Y - 50);
         explosion2.Location = new Point(bomb.Location.X + 50, bomb.Location.Y);
         explosion3.Location = new Point(bomb.Location.X, bomb.Location.Y + 50);
         explosion4.Location = new Point(bomb.Location.X - 50, bomb.Location.Y);
         ExplosionTimer.Start();
     }
     bomb3tick++;
 }
예제 #2
0
파일: Shell.cs 프로젝트: Isgeny/BattleCity
 private void OnDestroyed(object sender, EventArgs e)
 {
     MoveTimer.Stop();
     ExplosionTimer.Start();
 }