Beispiel #1
0
        static void Main()
        {
            GameLauncher gameLauncher = new GameLauncher();

#if !DEBUGSCENE
            LauncherInformation li = gameLauncher.OpenDialog();

            if (li.LauncherOperationStatus == LauncherOperationStatus.AuthConfirmed)
            {
                Parameter.Initialize(li);
            }
            else
            {
                return;
            }
#endif

#if DEBUGSCENE
            DebugScene.InitializeObjects();
#endif

            using (var game = new Game1())
            {
                game.Run();
            }

            ServerInformationBroker.Instance.StopServices();
        }
Beispiel #2
0
        private void ChckListBxDebugFlags_ItemCheck(object sender, ItemCheckEventArgs e)
        {
            if (e.NewValue == CheckState.Checked)
            {
                DebugScene.Flags |= (DebugViewFlags)ChckListBxDebugFlags.Items[e.Index];
            }
            else
            {
                DebugScene.Flags &= ~(DebugViewFlags)ChckListBxDebugFlags.Items[e.Index];
            }

            DebugScene.Invalidate();
        }
Beispiel #3
0
        public static void LoadScene(string name)
        {
            try
            {
                ActiveScene = _kernel.Get <DinoScene>(name);
            }
            catch
            {
                ActiveScene = new DebugScene(_game, name);
            }

            _game.SwitchScene(ActiveScene);
        }
Beispiel #4
0
        static void Main(string[] args)
        {
#if !DEBUGSCENE
            if (!CreateLauncherScreen(args))
            {
                return;
            }

            CreateLoadingScreen();
#elif DEBUGSCENE
            DebugScene.InitializeObjects();
#endif

            using (var game = new Game1())
            {
                game.Run();
            }

            ServerInformationBroker.Instance.StopServices();
        }
Beispiel #5
0
 private void BtnStep_Click(object sender, EventArgs e)
 {
     DebugScene.Step();
 }