private static void Main(string[] args) { Renderer.Init(); Renderer.WindowSize = new Vector2(80, 25); NotePlayer.Init(); App = new App(); App.Init(); _keyThread = new Thread(ConsoleKeyboard.CheckKey); _render = new Thread(RenderDraw); _keyThread.Start(); _render.Start(); while (Running) { Thread.Sleep(33); App.Update(); App.Draw(); } NotePlayer.Stop = true; _keyThread.Abort(); _render.Abort(); }
private static void Main(string[] args) { Console.Clear(); Renderer.Init(); Renderer.WindowSize = new ConsoleGameUtilities.Vector2(54, 25); NotePlayer.Init(); game = new Game(); game.Init(); keyThread = new Thread(ConsoleKeyboard.CheckKey); render = new Thread(RenderDraw); keyThread.Start(); render.Start(); while (Running) { Thread.Sleep(33); game.Update(); game.Draw(); } NotePlayer.Stop = true; keyThread.Abort(); render.Abort(); }