![]() |
Routines |
| Prev: 91BC | Up: Map | Next: 9222 |
|
Used by the routines at TIMED_DOOR_OPEN and DOOR_SERF.
The plain doorway, and the routine every other kind falls back on once it has decided to let the player through. It offers $1111 as the tolerance, asks PLAYER_AT_DOOR whether anyone is standing in it, and calls ENTER_ROOM if so -- then draws itself either way.
|
||||
| DOOR | 91F2 | LD BC,$1111 | ||
|
This entry point is used by the routines at TRAPDOOR_CLOSED and ACG_DOOR.
|
||||
| DOORWAY | 91F5 | CALL PLAYER_AT_DOOR | ||
| 91F8 | CALL C,ENTER_ROOM | |||
| 91FB | JP DRAW_DOOR | |||
|
This entry point is used by the routines at TIMED_DOOR_SHUT, TRAPDOOR_CLOSED, DOOR_LOCKED_A, DOOR_LOCKED_B, DOOR_SERF, ACG_DOOR and TRAPDOOR_FALL.
|
||||
| DRAW_DOOR | 91FE | LD E,(IX+$03) | ||
| 9201 | LD D,(IX+$04) | |||
| 9204 | DEC D | |||
| 9205 | LD C,(IX+$00) | |||
| 9208 | LD B,(IX+$05) | |||
| 920B | CALL DRAW_SPRITE_COLOURS | |||
| 920E | LD A,($5E14) | |||
| 9211 | AND A | |||
| 9212 | RET NZ | |||
|
|
||||
| DRAW_RECORD | 9213 | LD E,(IX+$03) | ||
| 9216 | LD D,(IX+$04) | |||
| 9219 | LD C,(IX+$00) | |||
| 921C | LD B,(IX+$05) | |||
| 921F | JP DRAW_SPRITE_PIXELS | |||
| Prev: 91BC | Up: Map | Next: 9222 |