Esempio n. 1
0
        public void LoadContent(ContentManager content)
        {
            tempMonster  = content.Load <Texture2D>("Entity/Sparker");
            tileTextures = new List <Texture2D>();
            Dictionary <string, Texture2D> texs = LoadContent <Texture2D>(content, "Tiles");

            foreach (KeyValuePair <string, Texture2D> entry in texs)
            {
                // do something with entry.Value or entry.Key
                tileTextures.Add(entry.Value);
            }

            entityParticle.LoadContent(content);
            bulletManager.LoadContent(content);
        }
Esempio n. 2
0
        public void LoadContent(ContentManager content)
        {
            name                 = "Danker";
            texture              = content.Load <Texture2D>("Player/TempSprite");
            bodyTextures         = new Texture2D[3];
            bodyTextures[0]      = content.Load <Texture2D>("Player/Head");
            bodyTextures[1]      = content.Load <Texture2D>("Player/RightHand");
            bodyTextures[2]      = content.Load <Texture2D>("Player/LeftHand");
            playerParticleSystem = new Systems.ParticleSystem(1000);
            playerParticleSystem.LoadContent(content);
            rightHand = new BodyPart()
            {
                Tag = "RightHand"
            };
            leftHand = new BodyPart()
            {
                Tag = "LeftHand"
            };

            lua = new Lua();
            CompileLua();
            // weapon = new Weapons.Pistol("Pistol", 0);
        }