diff options
author | Aki <nthirtyone@gmail.com> | 2016-08-02 12:12:16 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2016-08-02 12:12:16 +0200 |
commit | f28674114986a4b345c50b4815fbef11766b1b51 (patch) | |
tree | e57a1cfcec17f8f998766eda37bf34be5f56a32a | |
parent | c2581f62e0cd3b788877f9289964716b071eb7f4 (diff) | |
download | roflnauts-f28674114986a4b345c50b4815fbef11766b1b51.zip roflnauts-f28674114986a4b345c50b4815fbef11766b1b51.tar.gz roflnauts-f28674114986a4b345c50b4815fbef11766b1b51.tar.bz2 |
Scale debug info
-rw-r--r-- | main.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |