Prev: 60714 Up: Map Next: 60726
60720: Obtain location descriptors for a character standing next to a closed door
Used by the routine at 60179. A location descriptor for the character's current location has been found, and it corresponds to a location that is next to a door that happens to be closed. In this case we process the remaining location descriptors for the character's x-coordinate, one of which may be specific to the character's z-coordinate (1=behind the closed door, or 2=in front of it), and thus provide the appropriate direction descriptors (which are returned in C). For an example of where this can happen, see the three descriptors in the location descriptor table at 49952 that correspond to the entrance to the shop at the far left of town.
Input
B Character's y-coordinate (bits 2-6: y-4) and z-coordinate (bit 7: z-1)
E Character's x-coordinate
HL Address of the third byte of the location descriptor just processed
60720 CALL 60222 Process the remaining location descriptors for the character's x-coordinate
60723 LD A,4 A=4: the character is standing behind or in front of a closed door
60725 RET
Prev: 60714 Up: Map Next: 60726