Exemplo n.º 1
0
        public void BackToStart()
        {
            startScreen = new StartScreen(this);
            currentScreen = Screen.StartScreen;

            modeScreen = null;
        }
Exemplo n.º 2
0
        public void modeSelect()
        {
            modeScreen = new ModeScreen(this);
            currentScreen = Screen.ModeScene;

            startScreen = null;
        }
Exemplo n.º 3
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);
            startScreen = new StartScreen(this);
            currentScreen = Screen.StartScreen;

            //Load the Song
            song = Content.Load<Song>("Sounds/BgMusic");

            // Set the Media player to repeat the song
            MediaPlayer.IsRepeating = true;

            // Tell MediaPlayer to play the song
            MediaPlayer.Play(song);

            base.LoadContent();
        }