Пример #1
0
        /// <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);
        }