Prev: 9E7A Up: Map Next: 9EC0
9EA5: Test the second slope shape (flags $40)
Used by the routine at test_landscape_piece.
Mirrored left to right (test_slope_swapped); the touch measured from the other side. The entry point after it serves test_slope_upside_down.
Input
IX The collision record
test_slope_reversed 9EA5 CALL test_slope_swapped
This entry point is used by the routine at test_slope_upside_down.
test_slope_reversed_0 9EA8 LD A,(scratch_count)
9EAB AND A
9EAC RET Z
9EAD DEC A
9EAE LD (scratch_count),A
9EB1 LD A,(IX+$00)
9EB4 SUB B
9EB5 SUB L
9EB6 RET C
9EB7 RET Z
9EB8 NEG
9EBA LD (touch_depth),A
9EBD JP overlap_found
Prev: 9E7A Up: Map Next: 9EC0