mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
commit
2583e421c4
@ -49,7 +49,7 @@ function light:move(x, y, z)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get x
|
-- get position
|
||||||
function light:getPosition()
|
function light:getPosition()
|
||||||
return self.x, self.y, self.z
|
return self.x, self.y, self.z
|
||||||
end
|
end
|
||||||
@ -61,6 +61,11 @@ function light:setColor(red, green, blue)
|
|||||||
self.blue = blue
|
self.blue = blue
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- get range
|
||||||
|
function light:getRange()
|
||||||
|
return self.range
|
||||||
|
end
|
||||||
|
|
||||||
-- set range
|
-- set range
|
||||||
function light:setRange(range)
|
function light:setRange(range)
|
||||||
if range ~= self.range then
|
if range ~= self.range then
|
||||||
|
Loading…
Reference in New Issue
Block a user