private static void GameLoop() { var Window = WindowHandler.Initialize(); var GUI = GUIHandler.Initialize(); var Clock = new Clock(); new BasicScene(); while (Window.IsOpen) { Window.DispatchEvents(); Window.Clear(); WorldCollision.CheckCollision(); World.UpdateEntities(); GlobalConsole.DrawConsole(); DrawableHandler.Draw(); InputHandler.UpdateInputs(); GUI.Draw(); Window.Display(); var DeltaClock = Clock.Restart(); deltaTime = DeltaClock.AsSeconds(); } }