public static void Init(int ScreenY, int ScreenX) { Updates.Init(); // FrameCap not set. Set it to default value of 10. if (Updates.FrameCap == 0) { Updates.FrameCap = 10; } if (screen == null || background == null) { screen = new char[ScreenY, ScreenX]; background = new char[ScreenY, ScreenX]; } }
static void Start() { Render.Init(); Updates.Init(); while (!quit) { // User Input // See System.Windows.Input.AddKeyDownHandler() => GameEngine.Input.Update(). This is how we will check input whenever ANY key is pressed ... // Update Gameobjects // Render the Scene // Timestep Updates.Wait(); } }