diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-16 15:25:38 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-16 15:25:38 +0800 |
| commit | 412fe36d2335addfdf260b71a93e69f5e2beacc2 (patch) | |
| tree | 56a812f151a86b52dadb1b26b9b1e197795d6153 | |
| parent | 220fdf4e42902d9155ad838bb8596a6bbfc7de51 (diff) | |
fix(ui): misplaced charging indicator
| -rw-r--r-- | render/draws/ui.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
