From 820033810bfd32e57c4e936e4ff3f1ff1f03d50e Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Wed, 5 Nov 2014 23:06:54 -0500 Subject: [PATCH] added setVisible method to light so that the light can be turned on and off --- lib/light.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/light.lua b/lib/light.lua index ba76fb8..a463ac8 100644 --- a/lib/light.lua +++ b/lib/light.lua @@ -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