Ejemplo n.º 1
0
        public void Drew(SpriteBatch spritebatch, GameTime gametime)
        {
            if (State == TrexState.idle)
            {
                _IdleBackGround.Drew(spritebatch, this.Position);
                _BlinkAnimation.Drew(spritebatch, this.Position);
            }

            else if (State == TrexState.jumping || State == TrexState.falling)
            {
                _IdleSprit.Drew(spritebatch, Position);
            }

            else if (State == TrexState.runnig)
            {
                _runAnimation.Drew(spritebatch, Position);
            }

            else if (State == TrexState.ducking)
            {
                _DuckingAnimation.Drew(spritebatch, Position);
            }
        }