diff options
author | Aki <nthirtyone@gmail.com> | 2018-04-07 18:53:31 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2018-04-07 18:53:31 +0200 |
commit | 6cef97b6e9ba6878607b1fff08e42ca19b79914f (patch) | |
tree | 4c74874da741a3a68ca707f0654e2559dca179b4 /main.lua | |
parent | 517625861535f76f1dcb992fff76d23fe4239f7c (diff) | |
download | roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.zip roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.tar.gz roflnauts-6cef97b6e9ba6878607b1fff08e42ca19b79914f.tar.bz2 |
Hopefully all uses of setColor now use values in <0,1> range
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,7 +27,7 @@ debug = false -- LÖVE2D callbacks function love.load () - love.graphics.setBackgroundColor(90, 90, 90) + love.graphics.setBackgroundColor(.35, .35, .35) love.graphics.setDefaultFilter("nearest", "nearest") -- TODO: Move fonts somewhere else out of global scope. Font = love.graphics.newImageFont("assets/font-normal.png", " 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.,:;-_/\\!@#$%^&*?=+~`|'\"()[]{}<>", -1) @@ -44,10 +44,10 @@ function love.draw () if debug then local scale = getScale() love.graphics.setFont(Font) - love.graphics.setColor(255, 0, 0, 255) + love.graphics.setColor(1, 0, 0, 1) love.graphics.print("Debug ON", 10, 10, 0, scale, scale) if dbg_msg then - love.graphics.setColor(255, 255, 255, 255) + love.graphics.setColor(1, 1, 1, 1) love.graphics.print(dbg_msg, 10, 10+9*scale, 0, scale, scale) end end |