Closed caewok closed 1 year ago
The top does not do anything, it was kept for compatibility and for other modules to use but the test is not meant to test the ceiling, although it was doing that in v10 but I decided to remove it since it was creating more confusion than anything else and no longer made sense for how v10 levels operates
In
SightHandler.prototype.testCollision
, the code is supposed to loop through the tile planes and check for ceiling and floor collisions:I cannot tell what, if anything, the
top
variable is supposed to be doing. It appears to be unused. Which makes me think that maybe there is a missing test for top or maybe some of thebottom
variables in the innerif
loop should testtop
instead ofbottom
.