Exemplo n.º 1
0
        public static async Task Main(params string[] args)
        {
            using var host = Host.GetSuitableHost("Qsor");
            using var game = new QsorGame(args)
                  {
                      Updater = !DebugUtils.IsDebugBuild && RuntimeInfo.OS == RuntimeInfo.Platform.Windows ? new SquirrelUpdater() : null
                  };

            host.Run(game);
        }
Exemplo n.º 2
0
        private void Load(GameHost host)
        {
            var game = new QsorGame();

            game.SetHost(host);

            Children = new Drawable[]
            {
                new Box
                {
                    RelativeSizeAxes = Axes.Both,
                    Colour           = Color4.Black,
                },
                game
            };

            AddUntilStep("Wait for Load", () => game.IsLoaded);
        }