TapTitanXNA_JuliusMolina.Level.Draw C# (CSharp) Method

Draw() public method

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(background, Vector2.Zero, null, Color.White, 0.0f, Vector2.Zero, 1.0f, SpriteEffects.None, 0.0f);
              //      enemy1.Draw(gameTime, spriteBatch);
              //      enemy2.Draw(gameTime, spriteBatch);

            support1.Draw(gameTime, spriteBatch);

            switch (level)
            {
                case 1:
                    enemy1.Draw(gameTime, spriteBatch);
                    break;
                case 2:
                    enemy2.Draw(gameTime, spriteBatch);
                    break;
                default:
                    break;
            }

            hero.Draw(gameTime, spriteBatch);
            spriteBatch.DrawString(damageStringFont, "HP = " + currentEnemyHP, Vector2.Zero, Color.Red);

            //playButton.Draw(gameTime, spriteBatch);
            attackButton.Draw(gameTime, spriteBatch);
        }