Beispiel #1
0
 private void ChangeToLevelMenu()
 {
     menu.Hide();
     levelMenu.Show();
     gameplay.Hide();
     complete.Hide();
 }
Beispiel #2
0
 public void Reset()
 {
     x_ship  = 450;
     y_ship  = 850;
     x_enemy = -600;
     y_enemy = 20;
     IScore  = 0;
     speed   = 5;
     Tmins   = 2;
     Tsecs   = 0;
     start   = true;
     ScoreTimePan.Controls.Clear();
     this.Size = new Size(385, 408);
     LevelMenu.Show();
     CenterWindow();
     if (Level == 2)
     {
         int size = Enemies.Count();
         for (int i = 0; i < size; i++)
         {
             Enemies[i].Dispose();
             Enemies.Remove(Enemies[i]);
             size--;
             i--;
         }
         size = EnemiesBullets.Count();
         for (int i = 0; i < size; i++)
         {
             EnemiesBullets[i].Dispose();
             EnemiesBullets.Remove(EnemiesBullets[i]);
             size--;
             i--;
         }
     }
 }
Beispiel #3
0
 private void ShowLevelMenu()
 {
     base.Hide();
     levelMenu.Show();
 }