Example #1
0
 /// <inheritdoc />
 protected override void OnClosed()
 {
     Test?.Dispose();
     Test = null;
     DebugDrawer.Destroy();
     TestSettingHelper.Save(Global.Settings);
     _controller.Dispose();
     _controller = null;
     _stopwatch.Stop();
     base.OnClosed();
 }
Example #2
0
 static void Main(string[] args)
 {
     Global.Settings      = TestSettingHelper.Load();
     Global.Camera.Width  = Global.Settings.WindowWidth;
     Global.Camera.Height = Global.Settings.WindowHeight;
     using (var game = new Game(
                new GameWindowSettings {
         RenderFrequency = 60, UpdateFrequency = 60
     },
                new NativeWindowSettings {
         Size = new Vector2i(Global.Settings.WindowWidth, Global.Settings.WindowHeight)
     }))
     {
         game.Run();
     }
 }