mirror of
https://github.com/tanema/light_world.lua.git
synced 2025-01-07 15:24:21 +00:00
added setVisible method to light so that the light can be turned on and off
This commit is contained in:
parent
233d40ea39
commit
820033810b
@ -206,4 +206,8 @@ function light:drawPixelShadow(l,t,w,h,s, normalMap, canvas)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function light:setVisible(visible)
|
||||||
|
self.visible = visible
|
||||||
|
end
|
||||||
|
|
||||||
return light
|
return light
|
||||||
|
Loading…
Reference in New Issue
Block a user