/// <summary> /// LoadContent 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); List <Texture2D> textures = new List <Texture2D>() { Content.Load <Texture2D>("grass"), Content.Load <Texture2D>("tree"), }; map.SetTextures(textures); }
/// <summary> /// LoadContent is the place to load all of the content. /// </summary> protected override void LoadContent() { device = graphics.GraphicsDevice; // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); zombie.SetTexture(Content.Load <Texture2D>("zombiesStrip10")); mapTextures.Add(Content.Load <Texture2D>("Grass")); mapTextures.Add(Content.Load <Texture2D>("Dirt")); mapTextures.Add(Content.Load <Texture2D>("Rock")); mapTextures.Add(Content.Load <Texture2D>("Tree")); map.SetTextures(mapTextures); }