static void Main() { using (var game = new TetrisGame()) { game.Run(); } }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (TetrisGame game = new TetrisGame()) { game.Run(); } }
private void gameLoop(object sender, EventArgs e) { _game.Run(); screenRefresh(); if (_game.GameOver) { Title = "Game Over! " + TotalLines[0].ToString(); } else { Title = TotalLines[0].ToString(); } }
static void Main(string[] args) { using (TetrisGame game = new TetrisGame()) { game.Run(); } }
static void Main() { using (var game = new TetrisGame()) game.Run(); }