From 0d4c32864cfd8365245ecaeedfc26dbf1a3da607 Mon Sep 17 00:00:00 2001 From: Tyler Scott Date: Sun, 6 Feb 2022 09:39:04 +0700 Subject: [PATCH] Allow launched bubble to squeeze through spaces --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index f3cbb1d..aa72175 100644 --- a/main.lua +++ b/main.lua @@ -271,7 +271,7 @@ function love.update(dt) local diff_x = next_x - slot.x local diff_y = next_y - slot.y local dist = math.sqrt(diff_x * diff_x + diff_y * diff_y) - if dist <= game.bubble_diameter then + if dist <= game.bubble_diameter - 2 then -- -2 to allow squeezing through local depth = game.bubble_diameter - dist local direction_x = diff_x / dist local direction_y = diff_y / dist