private void InitScreen()
        {
            SCREEN_MANAGER.AddScreen(new Screens.GameScreen(GraphicsDevice));

            SCREEN_MANAGER.GotoScreen("GameScreen");

            SCREEN_MANAGER.Init();
        }
Beispiel #2
0
        private void InitScreens()
        {
            SCREEN_MANAGER.AddScreen(new MainScreen(GraphicsDevice));
            SCREEN_MANAGER.AddScreen(new FileBrowserScreen(GraphicsDevice));

            SCREEN_MANAGER.GotoScreen("MainScreen");
            //SCREEN_MANAGER.GotoScreen("FileBrowserScreen");

            SCREEN_MANAGER.Init();
        }
Beispiel #3
0
        private void InitScreen()
        {
            SCREEN_MANAGER.add_screen(new EditorScreen(GraphicsDevice));
            SCREEN_MANAGER.add_screen(new MainMenuScreen(GraphicsDevice));
            SCREEN_MANAGER.add_screen(new TestAnimationScreen(GraphicsDevice));
            SCREEN_MANAGER.add_screen(new Screens.MainGameScreen.SetupScreen(GraphicsDevice));
            SCREEN_MANAGER.add_screen(new Screens.MainGameScreen.GameScreen(GraphicsDevice));
            SCREEN_MANAGER.add_screen(new Screens.MainGameScreen.Client_Screen(GraphicsDevice));
            SCREEN_MANAGER.add_screen(new Screens.MainGameScreen.Room_Screen(GraphicsDevice));
            SCREEN_MANAGER.add_screen(new TestConsole(GraphicsDevice));

            //SCREEN_MANAGER.goto_screen("TestAnimationScreen");
            //SCREEN_MANAGER.goto_screen("SetupScreen");
            SCREEN_MANAGER.goto_screen("MainMenuScreen");
            //SCREEN_MANAGER.goto_screen("EditorScreen");

            SCREEN_MANAGER.Init();
        }
        private void InitScreen()
        {
            var playscreen = new MainPlayScreen(GraphicsDevice)
            {
                MapName = CONTENT_MANAGER.MapName ?? "menu"
            };

            TransitionScreen transitionScreen = new TransitionScreen(GraphicsDevice)
            {
                StartingDirectory = Path.Combine(CONTENT_MANAGER.LocalRootPath, "map"),
                SearchPattern     = "*.tmx",
                CallBack          = x => {
                    playscreen.MapName = x;
                    SCREEN_MANAGER.GotoScreen("MainPlayScreen");
                }
            };

            SCREEN_MANAGER.AddScreen(playscreen);
            SCREEN_MANAGER.AddScreen(transitionScreen);

            SCREEN_MANAGER.GotoScreen("MainPlayScreen");

            SCREEN_MANAGER.Init();
        }