Beispiel #1
0
        public void Load(Microsoft.Xna.Framework.Content.ContentManager Content)
        {
            font = Content.Load <SpriteFont>("font");

            flowers.Add(Content.Load <Texture2D>("9"));
            flowers.Add(Content.Load <Texture2D>("9"));
            flowers.Add(Content.Load <Texture2D>("9"));
            flowers.Add(Content.Load <Texture2D>("10"));
            flowers.Add(Content.Load <Texture2D>("10"));

            clouds.Add(Content.Load <Texture2D>("cloud1"));
            clouds.Add(Content.Load <Texture2D>("cloud1"));
            clouds.Add(Content.Load <Texture2D>("cloud2"));

            grass = Content.Load <Texture2D>("grass");

            player.SetTexture(Content.Load <Texture2D>("5"));
            player.SetTexture(Content.Load <Texture2D>("6"));

            foreach (var item in workers)
            {
                item.SetTexture(Content.Load <Texture2D>("2"));
                item.SetTexture(Content.Load <Texture2D>("3"));
            }
        }