Esempio n. 1
0
        private void TransitionToMenu()
        {
            if (transitionFinished)
            {
                return;
            }

            Scene menuScene = new Scene();

            Logic menuLogic = new MenuLogic(director, menuScene);

            menuLogic.Initialize();
            Screen menuScreen = new DefaultScreen(director, menuScene, menuLogic.BaseScreenSize);

            director.TransitionToLogic(menuLogic);
            director.TransitionToScreen(menuScreen, 3, -1);

            transitionFinished = true;
        }
Esempio n. 2
0
        private void TransitionToInstructions()
        {
            if (transitionFinished)
            {
                return;
            }
            Scene instructionScene = new Scene();

            instructionScene.RegisterMatchSoundManager(scene.MatchSoundManager);

            Logic instructionLogic = new InstructionLogic(director, instructionScene, selectedPlayers);

            instructionLogic.Initialize();
            Screen instructionScreen = new DefaultScreen(director, instructionScene, instructionLogic.BaseScreenSize);

            director.TransitionToLogic(instructionLogic);
            director.TransitionToScreen(instructionScreen, 3, -1);

            transitionFinished = true;
        }