summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-12-27 14:56:24 -0600
committerthe lemons <citrons@mondecitronne.com>2022-12-27 14:56:24 -0600
commit9655441dc9811a5f7400eafbc057e28266250fd0 (patch)
tree998f388456acdf48368f744bd627da1170f5c1d4
parentea94fd5b12421717c383512ae7be2d8c339eff60 (diff)
change energy display
-rw-r--r--main.lua3
1 files changed, 2 insertions, 1 deletions
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