added setVisible method to light so that the light can be turned on and off

This commit is contained in:
Tim Anema 2014-11-05 23:06:54 -05:00
parent 233d40ea39
commit 820033810b

View File

@ -206,4 +206,8 @@ function light:drawPixelShadow(l,t,w,h,s, normalMap, canvas)
end
end
function light:setVisible(visible)
self.visible = visible
end
return light