summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-08-02 12:12:16 +0200
committerAki <nthirtyone@gmail.com>2016-08-02 12:12:16 +0200
commitf28674114986a4b345c50b4815fbef11766b1b51 (patch)
treee57a1cfcec17f8f998766eda37bf34be5f56a32a
parentc2581f62e0cd3b788877f9289964716b071eb7f4 (diff)
downloadroflnauts-f28674114986a4b345c50b4815fbef11766b1b51.zip
roflnauts-f28674114986a4b345c50b4815fbef11766b1b51.tar.gz
roflnauts-f28674114986a4b345c50b4815fbef11766b1b51.tar.bz2
Scale debug info
-rw-r--r--main.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 445ed6f..2669ef8 100644
--- a/main.lua
+++ b/main.lua
@@ -129,6 +129,10 @@ end
function love.draw()
Scene:draw()
if debug then
- love.graphics.print("Current FPS: "..tostring(love.timer.getFPS()), 10, 10)
+ local scale = getScale()
+ love.graphics.setColor(255, 0, 0, 255)
+ love.graphics.print("Debug ON", 10, 10, 0, scale, scale)
+ love.graphics.setColor(255, 255, 255, 255)
+ love.graphics.print("Current FPS: "..tostring(love.timer.getFPS()), 10, 10+9*scale, 0, scale, scale)
end
end