Prev: 57363 Up: Map Next: 57384
57376: Test Cell Moving Left
Used by the routine at TestMoveLeft.
Tests an object that is moving to the left (along the negative X axis) against the walls in one cell, in the same way as TestCellMovingRight.
Input
DE X position to test
HL Y position to test
IX Object
Output
F The carry flag is set if there was a collision
TestCellMovingLeft 57376 CALL CheckWallsVerticalFirst Check whether the object hits a wall in the cell.
57379 RET NC Return if it did not.
57380 NEG Make the depth positive, and jump to ReduceVelocityX to reduce the velocity.
57382 JR ReduceVelocityX
Prev: 57363 Up: Map Next: 57384