diff --git a/sonic-bluestreak.love/game/modules/world/actors/parent.lua b/sonic-bluestreak.love/game/modules/world/actors/parent.lua index 951c67c..ee81b78 100644 --- a/sonic-bluestreak.love/game/modules/world/actors/parent.lua +++ b/sonic-bluestreak.love/game/modules/world/actors/parent.lua @@ -7,7 +7,7 @@ function Parent:new(world, type, x, y, z, w, h, d, isSolid) end function Parent:draw() - drawx, drawy, drawz = self.x, self.y, self.z + local drawx, drawy, drawz = self.x, self.y, self.z if (self.world.maptype == "shoot") then drawx = drawx + math.floor(drawy/2) end @@ -22,6 +22,8 @@ function Parent:draw() end function Parent:drawShadow(x, y) + local x = x or 0 + local y = y or 0 if (self.world.maptype == "shoot") then x = x + math.floor(y/2) end