예제 #1
0
        public static void Run()
        {
            DemoStarter starter = new DemoStarter();
            var         game    = AGSGame.Create(starter.Settings);

            starter.StartGame(game);
            game.Start();
        }
예제 #2
0
파일: Program.cs 프로젝트: jdiperla/MonoAGS
        public static void Run()
        {
            DemoStarter starter = new DemoStarter();
            var         game    = AGSGame.CreateEmpty();

            _gameDebugView = new Lazy <GameDebugView>(() =>
            {
                var gameDebugView = new GameDebugView(game, new KeyboardBindings(game.Input));
                gameDebugView.Load();
                return(gameDebugView);
            });

            starter.StartGame(game);
            game.Start(new AGSGameSettings("Demo Game", new AGS.API.Size(320, 200),
                                           windowSize: new AGS.API.Size(640, 400), windowState: WindowState.Normal));
        }