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

            SCREEN_MANAGER.GotoScreen("GameScreen");

            SCREEN_MANAGER.Init();
        }
Esempio n. 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();
        }
        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();
        }