コード例 #1
0
 //happens after game is won or lost
 private void endGame()
 {
     if (gameOver)
     {
         score    = 0;
         timesWon = 1;
         gameTimer.Stop();
         Close();
         Thread.Sleep(500);
         optionMenu options = new optionMenu();
         options.ShowDialog();
         gameOver  = false;
         killedAll = false;
     }
     else if (killedAll)
     {
         Close();
         timesWon++;
         gameTimer.Stop();
         level newLevel = new level();
         newLevel.ShowDialog();
     }
 }
コード例 #2
0
        private void startButton_Click(object sender, EventArgs e)
        {
            level open = new level();

            open.ShowDialog();
        }