public void Load(ContentManager content, Game1 theGame)
        {
            playerSprite.leftCollisionOffset  = leftColOffset;
            playerSprite.rightCollisionOffset = rightColOffset;
            playerSprite.vertCollisionOffset  = topColOffset;


            playerSprite.Load(content, "hero", true);

            AnimatedTexture animation = new AnimatedTexture(playerSprite.offset, 0, 1, 1);

            animation.Load(content, "walk", 12, 20);
            playerSprite.AddAnimation(animation, 0, -5);
            playerSprite.Stop();

            jumpSound         = content.Load <SoundEffect>("Player Jump (edited)");
            jumpSoundInstance = jumpSound.CreateInstance();

            deathSound         = content.Load <SoundEffect>("Player Death (edited)");
            deathSoundInstance = deathSound.CreateInstance();

            collectSound         = content.Load <SoundEffect>("Key Collect (edited)");
            collectSoundInstance = collectSound.CreateInstance();

            game = theGame;
            playerSprite.velocity = Vector2.Zero;
            playerSprite.position = new Vector2(theGame.GraphicsDevice.Viewport.Width / 2, 0);
            playerSprite.position = theGame.currentCheckpoint.position;
        }
        public void Load(ContentManager content, Game1 theGame)
        {
            game = theGame;

            AnimatedTexture animation = new AnimatedTexture(Vector2.Zero, 0, 1, 1);

            animation.Load(content, "chest", 1, 1);

            chestSprite.AddAnimation(animation, 0, 3);
        }
        public void Load(ContentManager content, Game1 theGame)
        {
            game = theGame;

            AnimatedTexture animation = new AnimatedTexture(Vector2.Zero, 0, 1, 1);

            animation.Load(content, "KeyIcons", 1, 1);
            jumpSound          = content.Load <SoundEffect>("Key Collect (edited)");
            jumpSoundtInstance = jumpSound.CreateInstance();

            keySprite.AddAnimation(animation, 0, 3);
        }
        public void Load(ContentManager content, Game1 game)
        {
            this.game = game;

            AnimatedTexture animation = new AnimatedTexture(Vector2.Zero, 0, 1, 1);

            animation.Load(content, "zombie", 4, 5);

            enemySprite.AddAnimation(animation, 16, 0);
            enemySprite.width  = 64;
            enemySprite.height = 64;
            enemySprite.offset = new Vector2(8, 8);
        }
        public void Load(ContentManager content, Game1 game)
        {
            this.game = game;

            enemySprite.Load(content, "zombie", false);
            enemySprite.width = enemySprite.width / frameCount;

            AnimatedTexture animation = new AnimatedTexture(Vector2.Zero, 0, 1, 1);

            animation.Load(content, "zombie", frameCount, 5);

            enemySprite.AddAnimation(animation, 0, 0);
            //enemySprite.width = 64 - horColOffset;
            //enemySprite.height = 64 - vertColOffset;
            enemySprite.offset = new Vector2(2, 2);
        }
        public void Load(ContentManager content, Game1 theGame)
        {
            playerSprite.Load(content, "hero", true);

            AnimatedTexture animation = new AnimatedTexture(playerSprite.offset, 0, 1, 1);

            animation.Load(content, "walk", 12, 20);
            playerSprite.AddAnimation(animation, 0, 0);
            playerSprite.Pause();

            jumpSound         = content.Load <SoundEffect>("Jump");
            jumpSoundInstance = jumpSound.CreateInstance();

            game = theGame;
            playerSprite.velocity = Vector2.Zero;
            playerSprite.position = new Vector2(theGame.GraphicsDevice.Viewport.Width / 2, 0);
        }