Adjust threshold for squeezing bubbles through gaps
This commit is contained in:
@@ -149,7 +149,7 @@ local function move_bubble(x, y, velocity_x, velocity_y)
|
|||||||
local diff_x = new_x - slot.x
|
local diff_x = new_x - slot.x
|
||||||
local diff_y = new_y - slot.y
|
local diff_y = new_y - slot.y
|
||||||
local dist = math.sqrt(diff_x * diff_x + diff_y * diff_y)
|
local dist = math.sqrt(diff_x * diff_x + diff_y * diff_y)
|
||||||
if dist <= game.bubble_diameter - 3 then -- -3 to allow squeezing through
|
if dist <= game.bubble_diameter - 6 then -- -6 to allow squeezing through
|
||||||
should_stop = true
|
should_stop = true
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user