summaryrefslogtreecommitdiffhomepage
path: root/not
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-03-19 04:20:46 +0100
committerAki <nthirtyone@gmail.com>2017-03-19 04:20:46 +0100
commit94f84647255e6d18f1e20ac0a1b8c8c9860b918e (patch)
tree9ad53fc352dc361b5cc24ebed9621063413500d2 /not
parentcca4d9c1bf4033c79e4bd61a257c6ea02557524c (diff)
downloadroflnauts-94f84647255e6d18f1e20ac0a1b8c8c9860b918e.zip
roflnauts-94f84647255e6d18f1e20ac0a1b8c8c9860b918e.tar.gz
roflnauts-94f84647255e6d18f1e20ac0a1b8c8c9860b918e.tar.bz2
Debug is obsolete in not.Sprite
Diffstat (limited to 'not')
-rw-r--r--not/Sprite.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/not/Sprite.lua b/not/Sprite.lua
index a8785d3..25d85f1 100644
--- a/not/Sprite.lua
+++ b/not/Sprite.lua
@@ -104,10 +104,9 @@ end
-- If there is no Quad, it will draw entire image. It won't draw anything if there is no image.
-- TODO: it doesn't follow same pattern as `not.Hero.draw`. It should implement so it can be called from `not.World`.
-- TODO: change children if above changes are in effect: `not.Platform`, `not.Decoration`.
-function Sprite:draw (offset_x, offset_y, scale, debug)
+function Sprite:draw (offset_x, offset_y, scale)
local offset_x = offset_x or 0
local offset_y = offset_y or 0
- local debug = debug or false
local i, q = self:getImage(), self:getQuad()
local x, y = self:getPosition()