bool rectcollision_offset(const base_type& one, const base_type& two, float off_x, float off_y)
{
return (one.x >= two.x - one.width + off_x + 1 &&
one.x <= two.x + two.width + off_x - 1 &&
one.y >= two.y - one.height + off_y + 1 &&
one.y <= two.y + two.height + off_y - 1);
}