![]() |
Routines |
| Prev: 37410 | Up: Map | Next: 37458 |
|
The handler for the locked doors (sprite IDs 8 to 11). When the player has the key and is in range of the door, both halves of the door become exits (sprite ID 2 see HandlerDoorExit) and the player goes through it with EnterDoor. The door is otherwise shown by HandlerRoomItem.
|
||||||||
| HandlerDoorLocked | 37444 | CALL CheckDoorKey | Call CheckDoorKey to see whether the player has the key. | |||||
| 37447 | JP NC,HandlerRoomItem | Jump to HandlerRoomItem if not. | ||||||
| 37450 | LD A,2 | A=2 (the sprite ID of an unlocked door). | ||||||
|
This entry point is used by the routine at HandlerCaveDoorLocked.
|
||||||||
| HandlerDoorLocked_Unlock | 37452 | CALL SetDoorSprites | Call SetDoorSprites to unlock both halves of the door. | |||||
| 37455 | JP EnterDoor | Jump to EnterDoor to enter the door. | ||||||
| Prev: 37410 | Up: Map | Next: 37458 |