Prev: 57338 Up: Map Next: 57363
57355: Test Cell Moving Down
Used by the routine at TestMoveDown.
Tests an object that is moving down the screen (along the negative Y axis) against the walls in one cell, in the same way as TestCellMovingUp.
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
TestCellMovingDown 57355 CALL CheckWallsHorizontalFirst Check whether the object hits a wall in the cell.
57358 RET NC Return if it did not.
57359 NEG Make the depth positive, and jump to ReduceVelocityY to reduce the velocity.
57361 JR ReduceVelocityY
Prev: 57338 Up: Map Next: 57363