public Form1() { InitializeComponent(); cCons = new CursedConsole(); cCons.init(); game = new Game(); }
public Game() { cCons = new CursedConsole(120, 30); cCons.init(); if (Console.WindowLeft + Console.WindowWidth < cCons.getWidth() && Console.WindowTop + Console.WindowHeight < cCons.getHeight()) { System.Console.SetBufferSize(cCons.getWidth(), cCons.getHeight()); } System.Console.SetWindowSize(cCons.getWidth(), cCons.getHeight()); cCons.draw(0, 0); Console.SetCursorPosition(0, 0); Console.ReadKey(); }