Exemple #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()
        {
            song = Content.Load <Song>("Hero Immortal");
            // 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, spriteBatch);
            this.Components.Add(actionScene);

            highScoreScene = new HighScoresScene(this);
            this.Components.Add(highScoreScene);

            aboutScene = new AboutScene(this, spriteBatch);
            this.Components.Add(aboutScene);


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

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

            creditScene = new Credits(this);
            this.Components.Add(creditScene);
            // others.....
        }
Exemple #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);
            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.....
        }
Exemple #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);

            // 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);
        }