Пример #1
0
 public void StartGame()
 {
     NewGameSettings = new GameSettings();
     CollisionsCheck = new Collisions(NewGameSettings);
     Level           = NewGameSettings.GenerateMap();
     Mapview         = new MapView(Level);
     Scores          = 0;
 }
Пример #2
0
        public void StartGame(Button button)
        {
            Dataview = new DataView(this);
            Dataview.Show();
            Mainscreen.Focus();
            SetSettings();
            CollisionsCheck = new Collisions(NewGameSettings);
            Level           = NewGameSettings.GenerateMap();
            Mapview         = new MapView(Level);

            Scores = 0;
            Apples.Clear();

            button.Hide();
            DrawTimer.Start();
            GameArea.Show();
            var settingsButton = Mainscreen.Controls.Find("SettingsButton", true);

            HideSettings((Button)settingsButton[0]);
            settingsButton[0].Hide();

            KolobokMain = null;
            Tanks.Clear();
        }