Esempio n. 1
0
        /// <summary>
        /// Activates the loading screen.
        /// </summary>
        public static void Load(bool loadingIsSlow, params GameScreen[] screensToLoad)
        {
            // Tell all the current screens to transition off.
            GameScreen[] screens = ScreenManager.GetScreens();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(loadingIsSlow, screensToLoad);
            ScreenManager.AddScreen(loadingScreen);

            foreach (GameScreen screen in screens)
                screen.ExitScreen();
        }
Esempio n. 2
0
        /// <summary>
        /// Event handler for when the Play Game menu entry is selected.
        /// </summary>
        void PlayGameMenuEntrySelected(object sender, EventArgs e)
        {
            SoundManager.GetSound(_BackgroundMusic).Stop();

            LoadingScreen.Load(true, new TestLevel1());
        }