Exemple #1
0
        /// <summary>
        /// Старт игры
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pictureBox4_MouseClick(object sender, MouseEventArgs e)
        {
            pictureBox6.Visible = true;
            pictureBox1.Visible = true;
            pictureBox2.Visible = true;
            pictureBox5.Visible = true;
            label5.Visible      = true;
            pictureBox7.Visible = false;

            string[] arFiles = Directory.GetFiles(@"Data\", "*.csv");
            foreach (var sFilename in arFiles)
            {
                pGame.CreateField(sFilename);
            }

            pGame.NewGame();
            cGame.EDirection enDirection = cGame.EDirection.Left;
            pGame.Turn(enDirection);
            n = 4;


            Game_Refresh();
            Snake_Refresh();
            Apple_Refresh();
            Life_Refreh();

            System.Threading.Thread.Sleep(300);
            m_pRefreshTimer.Start();

            pGame.Start();


            pictureBox4.Visible = false;
        }
Exemple #2
0
 public void NewGame()
 {
     print("cConductor.NewGame()");
     _game.NewGame();
 }