static void Main(string[] args) { // Initializes the handlers that need initializing ScreenHandler.Init(CONFIG_SCREEN); GameHandler.Init(); // To allow the esc button to be used as a pause button, // F12 have been set as the exit key. Raylib.SetExitKey(key: KeyboardKey.KEY_F12); while (!Raylib.WindowShouldClose()) { Raylib.BeginDrawing(); // Default color if it is not overbidden by a background in any stage. Raylib.ClearBackground(Color.BLANK); // GameHandler is a static class. StageHandler.Run(); GameHandler.Run(); Raylib.EndDrawing(); } Raylib.CloseWindow(); // When the game closes, it saves the config. // ScreenHandler.SaveCurrentConfiguration(); }