Prev: 8FE9 Up: Map Next: 902B
900A: Test the player's step against the doorways and tables, axis by axis
Used by the routine at MOVE_PLAYER.
As TEST_STEP_IN_ROOM, but calling TEST_ROOM_BOXES with the bit in A'. Runs after it, so a doorway can allow a step the rectangle refused and a table refuse one it allowed.
TEST_STEP_BOXES 900A PUSH DE
900B LD A,E
900C ADD A,(IX+$03)
900F LD E,A
9010 LD D,(IX+$04)
9013 LD A,$10
9015 EX AF,AF'
9016 CALL TEST_ROOM_BOXES
9019 POP DE
901A PUSH DE
901B LD E,(IX+$03)
901E LD A,D
901F ADD A,(IX+$04)
9022 LD D,A
9023 LD A,$20
9025 EX AF,AF'
9026 CALL TEST_ROOM_BOXES
9029 POP DE
902A RET
Prev: 8FE9 Up: Map Next: 902B