Remove offscreen.lua

Neat concept, but for now the cache rollover handles this without issue.
This commit is contained in:
Sage Vaillancourt 2025-03-03 19:19:12 -05:00
parent a6f9dabd88
commit cdb8c1315e
1 changed files with 0 additions and 20 deletions

View File

@ -1,20 +0,0 @@
local screenWidth, screenHeight = 400, 240
offscreenSystem = filteredSystem({ position = T.XyPair, expireWhenOffScreenBy = T.XyPair }, function(e, dt, system)
-- if Camera.pan.x - e.expireWhenOffScreenBy.x > e.position.x then
-- print("Fell behind")
-- system.world:removeEntity(e)
-- end
-- if Camera.pan.x + screenWidth + e.expireWhenOffScreenBy.x < e.position.x then
-- print("Too far ahead")
-- system.world:removeEntity(e)
-- end
-- if Camera.pan.y - e.expireWhenOffScreenBy.y > e.position.y then
-- print("Too high")
-- system.world:removeEntity(e)
-- end
-- if Camera.pan.y + screenHeight + e.expireWhenOffScreenBy.y < e.position.y then
-- print("Too low")
-- system.world:removeEntity(e)
-- end
end)