Adjust threshold for squeezing bubbles through gaps

main
Tyler Scott 2022-02-09 23:24:46 +07:00
parent 536ec12107
commit 9a9bdf0232
1 changed files with 1 additions and 1 deletions

View File

@ -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