Prev: D01D Up: Map Next: D056
D040: Handle Rex collision detection moving right
Used by the routine at D013.
D040 LD HL,($A019) Set HL the address into tile type buffer in front-up of Rex
D043 LD DE,$0023
D046 ADD HL,DE
D047 CALL $D06C Return if tile is wall
D04A RET Z
D04B LD DE,$0020 Set HL the address into tile type buffer in front-bottom of Rex
D04E ADD HL,DE
D04F CALL $D06C Return if tile is wall
D052 RET Z
D053 JP $D01D Move Rex to the right
Prev: D01D Up: Map Next: D056