diff --git a/lib/light.lua b/lib/light.lua index 2afe867..f5db6c8 100644 --- a/lib/light.lua +++ b/lib/light.lua @@ -46,27 +46,8 @@ function light:setPosition(x, y, z) end -- get x -function light:getX() - return self.x -end - --- get y -function light:getY() - return self.y -end - --- set x -function light:setX(x) - if x ~= self.x then - self.x = x - end -end - --- set y -function light:setY(y) - if y ~= self.y then - self.y = y - end +function light:getPosition() + return self.x, self.y end -- set color