Remove offscreen.lua
Neat concept, but for now the cache rollover handles this without issue.
This commit is contained in:
parent
a6f9dabd88
commit
cdb8c1315e
|
@ -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)
|
Loading…
Reference in New Issue