From 9655441dc9811a5f7400eafbc057e28266250fd0 Mon Sep 17 00:00:00 2001 From: the lemons Date: Tue, 27 Dec 2022 14:56:24 -0600 Subject: change energy display --- main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 19215b1..add0d92 100644 --- a/main.lua +++ b/main.lua @@ -101,8 +101,9 @@ local function draw_hud() love.graphics.applyTransform(window_transform()) love.graphics.setLineWidth(line_width) -- things + set_color(1, 1, 1) local total_energy = obj.total_energy() - text.draw("total energy "..total_energy, 10, 10) + text.draw(("e: %f"):format(total_energy), 10, 10, {scale = 0.4}) love.graphics.pop() end -- cgit v1.2.3