/// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites

            // add initial game objects
            burger = new Burger(Content, @"graphics/burger", GameConstants.WindowWidth / 2, GameConstants.WindowHeight * 7 / 8, null);

            // set initial health and score strings
            SpawnBear();
        }
示例#2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites
            frenchFriesSprite         = Content.Load <Texture2D>(@"graphics\frenchfries");
            teddyBearProjectileSprite = Content.Load <Texture2D>(@"graphics\teddybearprojectile");
            // add initial game objects
            burger = new Burger(Content, "graphics/burger", GameConstants.WindowWidth / 2, GameConstants.WindowHeight - GameConstants.WindowHeight / 8, null);
            SpawnBear();
            // set initial health and score strings
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites

            // add initial game objects
            burger = new Burger(Content, "burger", graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight * 7 / 8, null);
            SpawnBear();

            // set initial health and score strings
        }
示例#4
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites

            // add initial game objects
            burger = new Burger(Content, "burger", GameConstants.WINDOW_WIDTH / 2, GameConstants.WINDOW_HEIGHT - GameConstants.WINDOW_HEIGHT / 8, null);
            SpawnBear();

            // set initial health and score strings
        }
示例#5
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load<SoundEffect>(@"audio/BurgerDamage");
            burgerDeath = Content.Load<SoundEffect>(@"audio/BurgerDeath");
            burgerShot = Content.Load<SoundEffect>(@"audio/BurgerShot");
            explosion = Content.Load<SoundEffect>(@"audio/Explosion");
            teddyBounce = Content.Load<SoundEffect>(@"audio/TeddyBounce");
            teddyShot = Content.Load<SoundEffect>(@"audio/TeddyShot");

            // load sprite font
            font = Content.Load<SpriteFont>(@"fonts/Arial20");

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load<Texture2D>(@"graphics/teddybearprojectile");
            frenchFriesSprite = Content.Load<Texture2D>(@"graphics/frenchfries");
            explosionSpriteStrip = Content.Load<Texture2D>(@"graphics/explosion");

            // add initial game objects

            // add burger object calculating x and y (no need to center sprite as Burger constructor does it)
            int burgerX = GameConstants.WindowWidth / 2;
            int burgerY = GameConstants.WindowHeight - (GameConstants.WindowHeight / 8);
            burger = new Burger(Content, @"graphics\burger", burgerX, burgerY, burgerShot);

            // spawn a bear
            for(int i = 0; i < GameConstants.MaxBears; i++)
            {
                SpawnBear();
            }

            // end adding initial game objects

            // set initial health and score strings
            burgerDamaged(0);
            updateScoreString();
        }
示例#6
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites
            frenchFriesSprite         = Content.Load <Texture2D>("frenchfries");
            teddyBearProjectileSprite = Content.Load <Texture2D>("teddybearprojectile");

            // add initial game objects
            burger = new Burger(Content, "burger", (GameConstants.WINDOW_WIDTH / 2), (GameConstants.WINDOW_HEIGHT - (GameConstants.WINDOW_HEIGHT / 8)), null);
            SpawnBear();
            SpawnBear();
            SpawnBear();
            SpawnBear();

            // set initial health and score strings
        }
示例#7
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);



            // load audio content
            burgerDamage = Content.Load <SoundEffect>("BurgerDamage");
            burgerDeath  = Content.Load <SoundEffect>("BurgerDeath");
            burgerShot   = Content.Load <SoundEffect>("BurgerShot");
            explosion    = Content.Load <SoundEffect>("Explosion1");
            teddyBounce  = Content.Load <SoundEffect>("TeddyBounce");
            teddyShot    = Content.Load <SoundEffect>("TeddyShot");

            // load sprite font
            font = Content.Load <SpriteFont>("Arial20");

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load <Texture2D>("teddybearprojectile");
            frenchFriesSprite         = Content.Load <Texture2D>("frenchfries");

            explosionSpriteStrip = Content.Load <Texture2D>("explosion");



            // add initial game objects
            burger = new Burger(Content, "burger", GameConstants.WINDOW_WIDTH / 2, (GameConstants.WINDOW_HEIGHT / 8) * 7, burgerShot);

            for (int i = 0; i < GameConstants.MAX_BEARS; i++)
            {
                SpawnBear();
            }

            // set initial health and score strings
            healthString = GameConstants.HEALTH_PREFIX + burger.Health_property;
            scoreString  = GameConstants.SCORE_PREFIX + score;
        }
示例#8
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites
            frenchFriesSprite         = Content.Load <Texture2D>("frenchfries");
            teddyBearProjectileSprite = Content.Load <Texture2D>("teddybearprojectile");
            explosionSpriteStrip      = Content.Load <Texture2D>("explosion");

            // add initial game objects
            burger = new Burger(Content, "burger",
                                graphics.PreferredBackBufferWidth / 2,
                                graphics.PreferredBackBufferHeight - graphics.PreferredBackBufferHeight / 8,
                                null);
            SpawnBear();

            // set initial health and score strings
        }
示例#9
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);


            // load audio content
            burgerDamage = Content.Load <SoundEffect>("Audio//BurgerDamage");
            burgerDeath  = Content.Load <SoundEffect>("Audio//BurgerDeath");
            burgerShot   = Content.Load <SoundEffect>("Audio//BurgerShot");
            burger       = new Burger(Content, "Graphics//burger", GameConstants.WindowWidth / 2, (7 * GameConstants.WindowHeight) / 8, burgerShot);

            explosion   = Content.Load <SoundEffect>("Audio//Explosion");
            teddyBounce = Content.Load <SoundEffect>("Audio//TeddyBounce");
            teddyShot   = Content.Load <SoundEffect>("Audio//TeddyShot");

            // load sprite font
            font = Content.Load <SpriteFont>("Fonts//Arial20");


            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load <Texture2D>("Graphics//teddybearprojectile");
            explosionSpriteStrip      = Content.Load <Texture2D>("Graphics//explosion");
            frenchFriesSprite         = Content.Load <Texture2D>("Graphics//frenchfries");

            // add initial game objects
            for (int i = 0; i < GameConstants.MaxBears; i++)
            {
                SpawnBear();
            }



            // set initial health and score strings
            healthString = GameConstants.HealthPrefix + burger.getHealth();
            scoreString  = GameConstants.ScorePrefix + score;
        }
示例#10
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load <SoundEffect>(@"audio/BurgerDamage");
            burgerDeath  = Content.Load <SoundEffect>(@"audio/BurgerDeath");
            burgerShot   = Content.Load <SoundEffect>(@"audio/BurgerShot");
            explosion    = Content.Load <SoundEffect>(@"audio/Explosion");
            teddyBounce  = Content.Load <SoundEffect>(@"audio/TeddyBounce");
            teddyShot    = Content.Load <SoundEffect>(@"audio/TeddyShot");

            // load sprite font
            font = Content.Load <SpriteFont>(@"fonts/Arial20");

            // load projectile and explosion sprites
            frenchFriesSprite         = Content.Load <Texture2D>(@"graphics\frenchfries");
            teddyBearProjectileSprite = Content.Load <Texture2D>(@"graphics\teddybearprojectile");
            explosionSpriteStrip      = Content.Load <Texture2D>(@"graphics\explosion");

            // add initial game objects

            //declare burger: Window height * (7/8) is 7/8 below the top of the screen, or 1/8 above the bottom of the screen
            burger = new Burger(Content, @"graphics\burger", GameConstants.WindowWidth / 2, (int)(GameConstants.WindowHeight * (7.0 / 8.0)), burgerShot);

            //spawn teddy bear
            for (int i = 0; i < GameConstants.MaxBears; i++)
            {
                SpawnBear();
            }


            // set initial health and score strings
            healthString = GameConstants.HealthPrefix + burger.Health;
            scoreString  = GameConstants.ScorePrefix + score;
        }
示例#11
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load <SoundEffect>(@"audio\BurgerDamage");
            burgerDeath  = Content.Load <SoundEffect>(@"audio\BurgerDeath");
            burgerShot   = Content.Load <SoundEffect>(@"audio\BurgerShot");
            explosion    = Content.Load <SoundEffect>(@"audio\Explosion");
            teddyBounce  = Content.Load <SoundEffect>(@"audio\TeddyBounce");
            teddyShot    = Content.Load <SoundEffect>(@"audio\TeddyShot");

            // load sprite font
            font = Content.Load <SpriteFont>(@"fonts\Arial20");

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load <Texture2D>(@"graphics\teddybearprojectile");
            frenchFriesSprite         = Content.Load <Texture2D>(@"graphics\frenchfries");
            explosionSpriteStrip      = Content.Load <Texture2D>(@"graphics\explosion");

            // add initial game objects
            burger = new Burger(Content, @"graphics\burger",
                                graphics.PreferredBackBufferWidth / 2,
                                graphics.PreferredBackBufferHeight - graphics.PreferredBackBufferHeight / 8,
                                null);

            for (int i = 0; i < GameConstants.MaxBears; i++)
            {
                SpawnBear();
            }


            // set initial health and score strings
            healthString = GameConstants.HealthPrefix + burger.health;
            scoreString  = GameConstants.ScorePrefix + score;
        }
示例#12
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load <SoundEffect>(@"audio\BurgerDamage");
            burgerDeath  = Content.Load <SoundEffect>(@"audio\BurgerDeath");
            burgerShot   = Content.Load <SoundEffect>(@"audio\BurgerShot");
            explosion    = Content.Load <SoundEffect>(@"audio\Explosion");
            teddyBounce  = Content.Load <SoundEffect>(@"audio\TeddyBounce");
            teddyShot    = Content.Load <SoundEffect>(@"audio\TeddyShot");

            // load sprite font
            font = Content.Load <SpriteFont>(@"fonts\Arial20");

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load <Texture2D>(@"graphics\teddybearprojectile");
            frenchFriesSprite         = Content.Load <Texture2D>(@"graphics\frenchfries");
            explosionSpriteStrip      = Content.Load <Texture2D>(@"graphics\explosion");

            // add initial game objects
            int x = GameConstants.WindowWidth / 2;
            int y = GameConstants.WindowHeight - (GameConstants.WindowHeight / 8);

            burger = new Burger(Content, @"graphics\burger", x, y, burgerShot);

            // spawn several bears
            for (int i = 0; i < GameConstants.MaxBears; i++)
            {
                SpawnBear();
            }

            // set initial health and score strings
            UpdateHealthString();
            UpdateScoreString();
        }
示例#13
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load <SoundEffect>(@"Audio\BurgerDamage");
            burgerDeath  = Content.Load <SoundEffect>(@"Audio\BurgerDeath");
            burgerShot   = Content.Load <SoundEffect>(@"Audio\BurgerShot");
            explosion    = Content.Load <SoundEffect>(@"Audio\Explosion");
            teddyBounce  = Content.Load <SoundEffect>(@"Audio\TeddyBounce");
            teddyShot    = Content.Load <SoundEffect>(@"Audio\TeddyShot");

            // load sprite font
            font = Content.Load <SpriteFont>(@"Fonts\Arial20");

            // load projectile and explosion sprites
            frenchFriesSprite         = Content.Load <Texture2D>(@"graphics\frenchfries");
            teddyBearProjectileSprite = Content.Load <Texture2D>(@"graphics\teddybearprojectile");
            explosionSpriteStrip      = Content.Load <Texture2D>(@"graphics\explosion");

            // add initial game objects
            burger = new Burger(Content, @"graphics\burger", GameConstants.WindowWidth / 2, GameConstants.WindowHeight * 7 / 8, burgerShot);
            int bearCount = 0;

            while (bearCount != GameConstants.MaxBears)
            {
                SpawnBear();
                bearCount++;
            }

            // set initial health and score strings
            burger.Health = GameConstants.BurgerInitialHealth;
            healthString  = GameConstants.HealthPrefix + burger.Health;
            scoreString   = GameConstants.ScorePrefix + score;
        }
示例#14
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load <Texture2D>("Graphics//teddybearprojectile");
            frenchFriesSprite         = Content.Load <Texture2D>("Graphics//frenchfries");
            explosionSpriteStrip      = Content.Load <Texture2D>("Graphics//explosion");

            // add initial game objects
            burger = new Burger(Content, "Graphics//burger", GameConstants.WindowWidth / 2, (int)(7.0 / 8.0 * GameConstants.WindowHeight), null);

            for (int i = 0; i < GameConstants.MaxBears; i++)
            {
                SpawnBear();
            }

            // set initial health and score strings
        }
示例#15
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load burger
            int initialX = GameConstants.WindowWidth / 2;
            int initialY = GameConstants.WindowHeight - (int)(1 / 8.0F * GameConstants.WindowHeight);

            burger = new Burger(Content, @"Graphics\burger", initialX, initialY, null);

            // spawn bear
            SpawnBear();

            // load projectile and explosion sprites

            // add initial game objects

            // set initial health and score strings
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites

            // add initial game objects
            burger = new Burger(Content, "burger", graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight * 7 / 8, null);
            SpawnBear();

            // set initial health and score strings
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content

            // load sprite font

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load<Texture2D>("teddybearprojectile");
            frenchFriesSprite = Content.Load<Texture2D>("frenchfries");
            explosionSpriteStrip = Content.Load<Texture2D>("explosion");

            // add initial game objects
            burger = new Burger(Content, "burger", graphics.PreferredBackBufferWidth / 2, graphics.PreferredBackBufferHeight * 7 / 8, null);
            
            for (int i = 0; i < GameConstants.MAX_BEARS; i++)
                SpawnBear();

            // set initial health and score strings
        }
示例#18
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage=Content.Load<SoundEffect>("burgerdamage");
            burgerDeath=Content.Load<SoundEffect>("burgerdeath");
            burgerShot = Content.Load<SoundEffect>("burgershot");
            explosion = Content.Load<SoundEffect>("explosionsound");
            teddyBounce = Content.Load<SoundEffect>("teddybounce");
            teddyShot = Content.Load<SoundEffect>("teddyshot");

            // load sprite font
            font=Content.Load<SpriteFont>("Arial20");
            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load<Texture2D>("teddybearprojectile");
            frenchFriesSprite = Content.Load<Texture2D>("frenchfries");
            explosionSpriteStrip = Content.Load<Texture2D>("explosion");
            // add initial game objects
            burger = new Burger(Content, "burger", graphics.PreferredBackBufferWidth / 2, (int)(graphics.PreferredBackBufferHeight*0.875), burgerShot);

            for (; bears.Count < GameConstants.MAX_BEARS; )
            {
                SpawnBear();
            }
            // set initial health and score strings
            healthString = GameConstants.HEALTH_PREFIX + burger.Health.ToString();
            scoreString = GameConstants.SCORE_PREFIX + score.ToString();
        }
示例#19
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load<SoundEffect>(@"sounds\BurgerDamage");
            burgerDeath = Content.Load<SoundEffect>(@"sounds\BurgerDeath");
            burgerShot = Content.Load<SoundEffect>(@"sounds\BurgerShot");
            explosion = Content.Load<SoundEffect>(@"sounds\Explosion");
            teddyBounce = Content.Load<SoundEffect>(@"sounds\TeddyBounce");
            teddyShot = Content.Load<SoundEffect>(@"sounds\TeddyShot");

            // load sprite font
            font = Content.Load<SpriteFont>("Arial20");

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load<Texture2D>("teddybearprojectile");
            frenchFriesSprite = Content.Load<Texture2D>("frenchfries");
            explosionSpriteStrip = Content.Load<Texture2D>("explosion");

            // add initial game objects
            burger = new Burger(Content, "burger",
                GameConstants.WINDOW_WIDTH/2,
                GameConstants.WINDOW_HEIGHT-(GameConstants.WINDOW_HEIGHT/8),
                burgerShot);

            for (int i = 0; i < GameConstants.MAX_BEARS; i++)
            SpawnBear();

            // set initial health and score strings
            healthString = GameConstants.HEALTH_PREFIX + burger.Health;
            scoreString = GameConstants.SCORE_PREFIX + score;
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load<SoundEffect>("sounds/BurgerDamage");
            burgerDeath = Content.Load<SoundEffect>("sounds/BurgerDeath");
            burgerShot= Content.Load<SoundEffect>("sounds/BurgerShot");
            explosion = Content.Load<SoundEffect>("sounds/Explosion");
            teddyBounce = Content.Load<SoundEffect>("sounds/TeddyBounce");
            teddyShot = Content.Load<SoundEffect>("sounds/TeddyShot");
            // load sprite font
            font = Content.Load<SpriteFont>("Arial20");
            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load<Texture2D>("teddybearprojectile");
            frenchFriesSprite = Content.Load<Texture2D>("frenchfries");
            explosionSpriteStrip = Content.Load<Texture2D>("explosion");

            // add initial game objects
            //1.0/8 This division will produce a double since 1.0 is a double. If it was 1/8 the result would be zero (integer division)
            burger = new Burger(this.Content, "burger", GameConstants.WINDOW_WIDTH / 2, GameConstants.WINDOW_HEIGHT - (int)(1.0 / 8 * GameConstants.WINDOW_HEIGHT), burgerShot);

            for (int i=0; i< GameConstants.MAX_BEARS; i++)
            SpawnBear();

            // set initial health and score strings
            healthString = GameConstants.HEALTH_PREFIX + burger.Health;
            scoreString = GameConstants.SCORE_PREFIX + score;
        }
示例#21
0
 private void ClearTable()
 {
     messages.Clear();
     bears.Clear();
     burger = null;
 }
示例#22
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerDamage = Content.Load<SoundEffect>(@"audio/BurgerDamage");
            burgerDeath = Content.Load<SoundEffect>(@"audio/BurgerDeath");
            burgerShot = Content.Load<SoundEffect>(@"audio/BurgerShot");
            explosion = Content.Load<SoundEffect>(@"audio/Explosion");
            teddyBounce = Content.Load<SoundEffect>(@"audio/TeddyBounce");
            teddyShot = Content.Load<SoundEffect>(@"audio/TeddyShot");

            // load sprite font
            font = Content.Load<SpriteFont>(@"fonts/Arial20");

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load<Texture2D>(@"graphics/teddybearprojectile");
            frenchFriesSprite = Content.Load<Texture2D>(@"graphics/frenchfries");
            explosionSpriteStrip = Content.Load<Texture2D>(@"graphics/explosion");

            // add initial game objects

            // add burger object calculating x and y (no need to center sprite as Burger constructor does it)
            int burgerX = GameConstants.WindowWidth / 2;
            int burgerY = GameConstants.WindowHeight - (GameConstants.WindowHeight / 8);
            burger = new Burger(Content, @"graphics\burger", burgerX, burgerY, burgerShot);

            // spawn a bear
            for(int i = 0; i < GameConstants.MaxBears; i++)
            {
                SpawnBear();
            }

            // end adding initial game objects

            // set initial health and score strings
            burgerDamaged(0);
            updateScoreString();
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // load audio content
            burgerShot = Content.Load<SoundEffect>("BurgerShot");
            burgerDamage = Content.Load<SoundEffect>("BurgerDamage");
            burgerDeath = Content.Load<SoundEffect>("BurgerDeath");
            explosion = Content.Load<SoundEffect>("EXPLOSION3");
            teddyBounce = Content.Load<SoundEffect>("TeddyBounce");
            teddyShot = Content.Load<SoundEffect>("TeddyShot");


            // load sprite font
            explosionSpriteStrip = Content.Load<Texture2D>("explosion");

            // load projectile and explosion sprites
            teddyBearProjectileSprite = Content.Load < Texture2D >( "teddybearprojectile");
            frenchFriesSprite = Content.Load<Texture2D>("frenchfries"); // if you place your cursor above .Load it says what it misses and how to load it

            // add initial game objects
            for (int i = 0; i < GameConstants.MAX_BEARS; i++)
            {
                SpawnBear();
            }
            

            //BE CAREFUL HERE SINCE IT MUST BE PLACED FROM THE BOTTOM 1/8 AND NOT THE TOP THAT S WHY YOU DO * 7/8
            burger = new Burger(Content, "burger", GameConstants.WINDOW_WIDTH / 2, GameConstants.WINDOW_HEIGHT*7/8, burgerShot);
                
                 
            // set initial health and score strings
            font = Content.Load<SpriteFont>("Arial20");
            healthString = GameConstants.HEALTH_PREFIX + burger.Health;
            scoreString = GameConstants.SCORE_PREFIX+ score;
           

        }