draw.lua and main.lua linting
This commit is contained in:
parent
9f71874272
commit
03e5ce69cf
|
@ -8,16 +8,12 @@ drawRectanglesSystem = filteredSystem(
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
drawSpriteSystem = filteredSystem(
|
drawSpriteSystem = filteredSystem("drawSprites", { position = T.XyPair, drawAsSprite = T.pd_image }, function(e)
|
||||||
"drawSprites",
|
|
||||||
{ position = T.XyPair, drawAsSprite = T.pd_image },
|
|
||||||
function(e)
|
|
||||||
if e.position.y < Camera.pan.y - 240 or e.position.y > Camera.pan.y + 480 then
|
if e.position.y < Camera.pan.y - 240 or e.position.y > Camera.pan.y + 480 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
e.drawAsSprite:draw(e.position.x, e.position.y)
|
e.drawAsSprite:draw(e.position.x, e.position.y)
|
||||||
end
|
end)
|
||||||
)
|
|
||||||
|
|
||||||
local xMargin = 4
|
local xMargin = 4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue