private void ChangeToLevelMenu() { menu.Hide(); levelMenu.Show(); gameplay.Hide(); complete.Hide(); }
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--; } } }
private void ShowLevelMenu() { base.Hide(); levelMenu.Show(); }