/// <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); //Read The Previous Tutorial //Lire Le Cours precedent texture = Content.Load <Texture2D>("animation"); anim.LoadGraphicsContent(spriteBatch, texture); texture = Content.Load <Texture2D>("player"); player.LoadGraphicsContent(spriteBatch, texture); texture = Content.Load <Texture2D>("floor"); floor.LoadGraphicsContent(spriteBatch, texture); texture = Content.Load <Texture2D>("bg"); bg.LoadGraphicsContent(spriteBatch, texture); // TODO: use this.Content to load your game content here }
/// <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); texture = Content.Load <Texture2D>("boy"); boy.LoadGraphicsContent(spriteBatch, texture); texture = Content.Load <Texture2D>("girl"); girl.LoadGraphicsContent(spriteBatch, texture); texture = Content.Load <Texture2D>("light"); light.LoadGraphicsContent(spriteBatch, texture); texture = Content.Load <Texture2D>("block"); block1.LoadGraphicsContent(spriteBatch, texture); block2.LoadGraphicsContent(spriteBatch, texture); // TODO: use this.Content to load your game content here }