From 412fe36d2335addfdf260b71a93e69f5e2beacc2 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 16 Mar 2025 15:25:38 +0800 Subject: fix(ui): misplaced charging indicator --- render/draws/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/draws/ui.lua b/render/draws/ui.lua index 8ec4acb..c7f1b31 100644 --- a/render/draws/ui.lua +++ b/render/draws/ui.lua @@ -16,7 +16,7 @@ function ui.ammoBar() -- draw circle behind it to indicate the progress local chargingStarted = G.player.chargingStarted local chargingTime = G.time - (chargingStarted or 0) - if chargingStarted and i==#hearts then + if chargingStarted and i==G.player.nextBullet then local arc = math.pi * 2 * (chargingTime or 0) love.graphics.setColor(1,0,0,0.6) love.graphics.arc("fill", position.x+heartR/2, position.y+heartR/2, -- cgit v1.2.3