Beispiel #1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            if (pState == PlayerState.walking)
            {
                walkAnimation.Draw(spriteBatch);
                currentItem.Draw(spriteBatch);
                armWalkAnimation.Draw(spriteBatch);
            }

            if (pState == PlayerState.attacking)
            {
                attackAnimation.Draw(spriteBatch);
            }

            spriteBatch.Draw(healthBarTexture, currentHealthBar, Color.Green);
            spriteBatch.Draw(healthBarTexture, missingHealthBar, Color.Red);
        }
Beispiel #2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     animation.Draw(spriteBatch);
 }