def distance(self, sprite):
    vx = (self.x - sprite.x)
    vy = (self.y - sprite.y)
    self_radius = ((self.width + self.height) / 2)
    sprite_radius = ((sprite.width + sprite.height) / 2)
    dist = (Math.sqrt(((vx * vx) + (vy * vy))) - (self_radius + sprite_radius))
    return (dist if (dist >= 0) else 0)
def distance(self, sprite):
    vx = (self.x - sprite.x)
    vy = (self.y - sprite.y)
    self_radius = ((self.width + self.height) / 2)
    sprite_radius = ((sprite.width + sprite.height) / 2)
    dist = (Math.sqrt(((vx * vx) + (vy * vy))) - (self_radius + sprite_radius))
    return (dist if (dist >= 0) else 0)