diff --git a/lib/init.lua b/lib/init.lua index d8a4f32..e8aa2f9 100644 --- a/lib/init.lua +++ b/lib/init.lua @@ -343,7 +343,7 @@ end -- new rectangle function light_world:newRectangle(x, y, w, h) self.isShadows = true - return self:newBody("rectangle", x, y, width, height) + return self:newBody("rectangle", x, y, w, h) end -- new circle