static void Main(string[] args) { Console.SetWindowSize(Game.boardW, Game.boardH); Console.SetBufferSize(Game.boardW, Game.boardH); Console.CursorVisible = false; //StatusBar.ShowInfo("test!"); //while (true) { } Menu menu = new Menu(); menu.Draw(); Game game = new Game(); game.SetupBoard(); game.Start(); while (true) { ConsoleKeyInfo pressedButton = Console.ReadKey(); menu.Process(pressedButton); //game.Process(pressedButton); } }
void NewGame() { StatusBar.PrintInfo("New Game!"); Console.Clear(); Console.BackgroundColor = ConsoleColor.Black; Game g = new Game(); g.Start(); g.SetupBoard(); while (true) { ConsoleKeyInfo pressedButton = Console.ReadKey(); g.Process(pressedButton); } }