summaryrefslogtreecommitdiffhomepage
path: root/not/PhysicalBody.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2018-04-07 18:53:31 +0200
committerAki <nthirtyone@gmail.com>2018-04-07 18:53:31 +0200
commit6cef97b6e9ba6878607b1fff08e42ca19b79914f (patch)
tree4c74874da741a3a68ca707f0654e2559dca179b4 /not/PhysicalBody.lua
parent517625861535f76f1dcb992fff76d23fe4239f7c (diff)
downloadroflnauts-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 'not/PhysicalBody.lua')
-rw-r--r--not/PhysicalBody.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/not/PhysicalBody.lua b/not/PhysicalBody.lua
index 5081836..df9992e 100644
--- a/not/PhysicalBody.lua
+++ b/not/PhysicalBody.lua
@@ -69,19 +69,19 @@ function PhysicalBody:draw (debug)
local category = fixture:getCategory()
-- TODO: Fixture drawing of PhysicalBodies could take activity into account in every case.
if category == 1 then
- love.graphics.setColor(255, 69, 0, 150)
+ love.graphics.setColor(1, .3, 0, .6)
end
if category == 2 then
- love.graphics.setColor(137, 255, 0, 150)
+ love.graphics.setColor(.5, 1, 0, .6)
end
if category == 3 then
- love.graphics.setColor(137, 0, 255, 50)
+ love.graphics.setColor(.5, 0, 1, .2)
end
if category == 4 then
if self.body:isActive() then
- love.graphics.setColor(255, 230, 0, 50)
+ love.graphics.setColor(1, .9, 0, .2)
else
- love.graphics.setColor(255, 230, 0, 10)
+ love.graphics.setColor(1, .9, 0, .04)
end
end
local camera = self.world.camera