/// <summary> /// Starts the game. /// </summary> public void Start() { Client = new GameClientWindow(threed: false); Client.Engine2D.UseLightEngine = true; Client.OnWindowLoad += Engine_WindowLoad; Client.Engine2D.Zoom = 0.1f; Client.Start(); }
/// <summary> /// Starts the game. /// </summary> public void Start() { Client = new GameClientWindow(threed: true); Client.OnWindowLoad += Engine_WindowLoad; Client.Engine3D.Forward_Shadows = true; Client.Engine3D.EnforceAudio = false; Client.Engine3D.MainView.ShadowTexSize = () => 1024; Client.Engine3D.Source = this; Client.Start(GameWindowFlags.Default); }
/// <summary> /// Runs the game. /// </summary> public void Run() { // Create a window, 2D mode by default. Window = new GameClientWindow(threed: false); // Add an event for when the window is set up but not loaded yet. Window.OnWindowSetUp += WindowSetup; // Add an event to listen for when the window loads. Window.OnWindowLoad += WindowLoad; // Start the client systems. Window.Start(); }