Exemplo n.º 1
0
 internal void Draw(SpriteBatch spriteBatch)
 {
     if (state != State.Dead && state != State.Dying)
     {
         spriteBatch.Draw(_texture, _position, Color.White);
     }
     else if (state == State.Dying)
     {
         celAnimationPlayer.Draw(spriteBatch, _position, SpriteEffects.None);
     }
 }
Exemplo n.º 2
0
        internal void Draw(SpriteBatch spriteBatch)
        {
            switch (state)
            {
            case (State.Here):
                celAnimationPlayer.Draw(spriteBatch, _position, SpriteEffects.None);
                break;

            case (State.Gone):
                break;
            }
        }
Exemplo n.º 3
0
        internal void Draw(SpriteBatch spriteBatch)
        {
            switch (state)
            {
            case (State.Idle):
                if (se == SpriteEffects.FlipHorizontally)
                {
                    spriteBatch.Draw(catright, position, Color.White);
                }
                else
                {
                    spriteBatch.Draw(cat, position, Color.White);
                }
                break;

            case (State.Walking):
                animationPlayer.Draw(spriteBatch, position, se);
                break;

            case (State.Jumping):
                animationPlayer.Draw(spriteBatch, position, se);
                break;
            }
        }