diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-14 21:09:28 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-14 21:09:28 +0200 |
commit | e316bd9c66ab29b424b55003b6565cbf7a7ede45 (patch) | |
tree | b11aece7db5b55a7735dcc5c5c64ebb37fa18598 /not | |
parent | 2a65a119ef6cb8f99f7f5580439b0b63dcd85a69 (diff) | |
download | roflnauts-e316bd9c66ab29b424b55003b6565cbf7a7ede45.zip roflnauts-e316bd9c66ab29b424b55003b6565cbf7a7ede45.tar.gz roflnauts-e316bd9c66ab29b424b55003b6565cbf7a7ede45.tar.bz2 |
Added crude way to toggle Sprite drawing
Diffstat (limited to 'not')
-rw-r--r-- | not/Sprite.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/not/Sprite.lua b/not/Sprite.lua index a4346f6..33b8ac8 100644 --- a/not/Sprite.lua +++ b/not/Sprite.lua @@ -101,7 +101,7 @@ function Sprite:draw (debug) local draw_y = approx(y) local draw_x = math.floor(x) - if i then + if i and not self.hidden then love.graphics.setColor(255,255,255,255) if q then love.graphics.draw(i, q, draw_x, draw_y, angle, scaleX, scaleY, self:getOffset()) |