summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-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