Prev: 91ED Up: Map Next: 91FE
91F2: Handle Door Exit
Used by the routines at HandlerDoorOpen and HandlerClock.
The handler for the doors that are always open (sprite IDs 01 and 02 in HandlerTable2). It uses CheckPlayerInRange to check whether the player is in range of the door, and then EnterDoor takes them through it. Whether or not they do, the door is then shown by HandlerRoomItem.
Input
IX The door entity
HandlerDoorExit 91F2 LD BC,$1111 BC=1111 (the range of the door).
This entry point is used by the routines at HandlerDoorBigExit and HandlerDoorACGExit.
HandlerDoorExit_Check 91F5 CALL CheckPlayerInRange Call CheckPlayerInRange to see whether the player is in range of the door.
91F8 CALL C,EnterDoor Call EnterDoor if the player is in range.
91FB JP HandlerRoomItem Jump to HandlerRoomItem to handle a room item that does nothing.
Prev: 91ED Up: Map Next: 91FE