Esempio n. 1
0
        public void LoadAllTextures(ContentManager content, SpriteBatch spriteBatch)
        {
            this.spriteBatch = spriteBatch;

            textures.Add("sword", content.Load <Texture2D>("SwordItems"));
            textures.Add("arrow", content.Load <Texture2D>("arrow"));
            textures.Add("blueCandle", content.Load <Texture2D>("blueCandle"));
            textures.Add("bluePotion", content.Load <Texture2D>("BluePotion"));
            textures.Add("blueRing", content.Load <Texture2D>("BlueRing"));
            textures.Add("bomb", content.Load <Texture2D>("bomb"));
            textures.Add("boomerang", content.Load <Texture2D>("boomerang"));
            textures.Add("bow", content.Load <Texture2D>("bow"));
            textures.Add("clock", content.Load <Texture2D>("clock"));
            textures.Add("fairy", content.Load <Texture2D>("fairy"));
            textures.Add("compass", content.Load <Texture2D>("compass"));
            textures.Add("heart", content.Load <Texture2D>("heart"));
            textures.Add("heartcont", content.Load <Texture2D>("heartcont"));
            textures.Add("triforce", content.Load <Texture2D>("triforce"));
            textures.Add("key", content.Load <Texture2D>("key"));
            textures.Add("magicBook", content.Load <Texture2D>("MagicBook"));
            textures.Add("map", content.Load <Texture2D>("map"));
            textures.Add("rupee", content.Load <Texture2D>("rupee"));
            textures.Add("cloud", content.Load <Texture2D>("cloud"));

            itemLoader.LoadA();
            itemLoader.LoadB();
            itemLoader.LoadC();
            itemLoader.LoadD();
            itemLoader.LoadX();
        }