<filename>pygamerogue/utils.py<gh_stars>0
def shift_rect(rect, direction, distance=48):
    if direction == 'left':
        rect.left -= distance
    elif direction == 'right':
        rect.left += distance
    elif direction == 'up':
        rect.top -= distance
    elif direction == 'down':
        rect.top += distance
    return rect

<filename>pygamerogue/utils.py<gh_stars>0
def shift_rect(rect, direction, distance=48):
    if direction == 'left':
        rect.left -= distance
    elif direction == 'right':
        rect.left += distance
    elif direction == 'up':
        rect.top -= distance
    elif direction == 'down':
        rect.top += distance
    return rect
