예제 #1
0
        public void Update(GameTime gameTime)
        {
            var direction = inputReader.ReadInput();

            MoveHorizontal(direction);

            if (inputReader.ReadFollower())
            {
                Move(mouseReader.ReadInput());
            }


            animatie.Update(gameTime);
        }
예제 #2
0
        public void Update(GameTime gameTime)
        {
            var direction = inputReader.ReadInput();

            MoveHorizontal(direction);

            if (inputReader.ReadFollower())
            {
                Move(mouseReader.ReadInput());
            }


            //animatie.Update(gameTime);
            currentAnimation.Update(gameTime);

            _collisionRectangle.X = (int)Position.X;
            CollisionRectangle    = _collisionRectangle;
        }