Prev: 54148 Up: Map Next: 54176
54162: Point HL at terrain interaction data for character coordinates x=C, y=B
Used by the routines at 27357, 27508, 27647, 29174 and 36104.
Input
B y-coordinate (chars)
C x-coordinate (chars)
Output
HL points to entry in terrain interaction data
54162 LD A,94 Set most significant byte in terrain interaction data / attribute file lookup routine to 94 (terrain interaction table)...
54164 LD (54158),A ...
54167 CALL 54148 Point HL at terrain interaction data for character coordinates x=C, y=B
54170 LD A,88 Set most significant byte in terrain interaction data / attribute file lookup routine to 88, (attribute file)...
54172 LD (54158),A ...
54175 RET Return
Prev: 54148 Up: Map Next: 54176