Adjust threshold for squeezing bubbles through gaps
parent
536ec12107
commit
9a9bdf0232
2
main.lua
2
main.lua
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue