예제 #1
0
        private void GoTo(int point)
        {
            int position = (int)this.Position.X;

            if (position < point)
            {
                direction = Constants.DirectionX.Right;
                state = Constants.PlatformState.Moving;
            }
            else if (position > point)
            {
                direction = Constants.DirectionX.Left;
                state = Constants.PlatformState.Moving;
            }
        }
예제 #2
0
 public void CalculateBoundingBoxOffsets(Point boundingBoxSize, Constants.DirectionX animationDirection)
 {
     calculateBoundingBoxOffsets = true;
     this.boundingBoxSize = boundingBoxSize;
     this.animationDirection = animationDirection;
 }