diff options
author | Aki <nthirtyone@gmail.com> | 2018-04-09 21:30:11 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2018-04-09 21:30:11 +0200 |
commit | fa4409cedb322bbd41722f22308f399979fc6676 (patch) | |
tree | a7cc4725b003c1932ad88f4fce8548d43605bf9b /not/PhysicalBody.lua | |
parent | 96f6ebdaf06650a35dcdb6a1fc3f472b3aab6d8a (diff) | |
parent | 290d75dceb905217cb67fcb32e95dbeb45e27e3c (diff) | |
download | roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.zip roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.tar.gz roflnauts-fa4409cedb322bbd41722f22308f399979fc6676.tar.bz2 |
Love2D version 0.10.2 -> 11.0
Diffstat (limited to 'not/PhysicalBody.lua')
-rw-r--r-- | not/PhysicalBody.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/not/PhysicalBody.lua b/not/PhysicalBody.lua index 5081836..0fb969f 100644 --- a/not/PhysicalBody.lua +++ b/not/PhysicalBody.lua @@ -65,23 +65,23 @@ end function PhysicalBody:draw (debug) PhysicalBody.__super.draw(self, debug) if debug then - for _,fixture in pairs(self.body:getFixtureList()) do + for _,fixture in pairs(self.body:getFixtures()) do 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 |