示例#1
0
 static void Main()
 {
     using (var game = new TetrisGame())
     {
         game.Run();
     }
 }
示例#2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (TetrisGame game = new TetrisGame())
     {
         game.Run();
     }
 }
示例#3
0
        private void gameLoop(object sender, EventArgs e)
        {
            _game.Run();

            screenRefresh();

            if (_game.GameOver)
            {
                Title = "Game Over! " + TotalLines[0].ToString();
            }
            else
            {
                Title = TotalLines[0].ToString();
            }
        }
示例#4
0
 static void Main(string[] args)
 {
     using (TetrisGame game = new TetrisGame()) {
         game.Run();
     }
 }
示例#5
0
 static void Main()
 {
     using (var game = new TetrisGame())
         game.Run();
 }