예제 #1
0
 public Form1()
 {
     InitializeComponent();
     cCons = new CursedConsole();
     cCons.init();
     game = new Game();
 }
예제 #2
0
 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();
 }