LoadContent() public method

LoadContent will be called once per game and is the place to load all of your content.
public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
return void
Exemplo 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);

            //***********************************LOADING MENUS***************************************//
            intro.loadContent(Content);
            timex.loadContent(Content);
            instruct.loadContent(Content);
            instruct2.loadContent(Content);
            gameover.loadContent(Content);
            //***************************************************************************************//

            game_engine.LoadContent(Content);
        }