LoadSprites() public method

This method uses the games content manager to load all the sprites used in the game. This is to be called in the LoadContent method
public LoadSprites ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager Content the content manager used by the games LoadContent method
return void
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
            SpriteStore sp = new SpriteStore();
            sp.LoadSprites(Content);
            world.SetSpriteStore(sp);
        }