def check_collision(rect_1, rect_2):
    """
    Returns True if rectangles are colliding
    """
    dx = abs(rect_1.centerx - rect_2.centerx)
    dy = abs(rect_1.centery - rect_2.centery)
    return dx < (rect_1.width + rect_2.width)/2 and dy < (rect_1.height + rect_2.height)/2