Open Jigoku opened 8 years ago
physics.lua
if not world:inview(trap) then
table.remove(trap, i)
end
change to something like
if not world:inextendedview(trap) then
trap.x = trap.xorigin
trap.y = trap.yorigin
trap.falling = false
end
Although another switch should be added, trap should not infinitely fall. Once off screen in falling state, don't move the undrawn trap.
Not much of a problem for now, as mapstates have been implemented (resets everything to checkpoint), removing milestone for now.
Problem: If a player activates falling logs, and then backtracks, they may not be able to complete the level.... so make these reset when off screen.