Esempio n. 1
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);

            // TODO: use this.Content to load your game content here
            startScene = new StartScene(this);
            this.Components.Add(startScene);
            startScene.show();

            //create other scenes here and add to component list
            actionScene = new ActionScene(this);
            this.Components.Add(actionScene);

            helpScene = new HelpScene(this);
            this.Components.Add(helpScene);

            creditScene = new CreditScene(this);
            this.Components.Add(creditScene);

            scoreScene = new HighScoreScene(this);
            this.Components.Add(scoreScene);

            // others.....
        }
Esempio n. 2
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);

            // TODO: use this.Content to load your game content here
            startScene = new StartScene(this);
            this.Components.Add(startScene);
            startScene.show();

            //create other scenes here and add to component list
            actionScene         = new ActionScene(this);
            actionScene.Enabled = false;
            this.Components.Add(actionScene);

            helpScene = new HelpScene(this);
            this.Components.Add(helpScene);

            creditScreen = new CreditScene(this);
            this.Components.Add(creditScreen);

            howToPlayScreen = new HowToPlayScene(this);
            this.Components.Add(howToPlayScreen);

            bg               = Content.Load <Song>("Song");
            helpScreenSong   = Content.Load <Song>("helpscreensong");
            howToScreenSong  = Content.Load <Song>("howtosong");
            creditScreenSong = Content.Load <Song>("creditsong");
            homeScreenSong   = Content.Load <Song>("homescreensongz");

            MediaPlayer.Play(homeScreenSong);
        }