![]() |
Routines |
| Prev: 49130 | Up: Map | Next: 49224 |
|
Used by the routine at HandleNearArch.
Nudges the player towards the middle of the doorway of an arch, if close to it, by jumping to the routine for the direction of the arch (see ArchDirectionTable).
|
||||||||
|
Test that the player is flagged to be adjusted and is near the doorway.
|
||||||||
| NudgePlayerToArch | 49196 | LD HL,3855 | Set HL to 3855. | |||||
| 49199 | LD IY,23432 | Point IY at PlayerBottomObject. | ||||||
| 49203 | LD A,(IY+0) | Fetch the sprite number of the player. | ||||||
| 49206 | AND A | Return if the slot is not used. | ||||||
| 49207 | RET Z | |||||||
| 49208 | BIT 3,(IY+7) | Return if the player is not flagged to be adjusted near arches. | ||||||
| 49212 | RET Z | |||||||
| 49213 | CALL TestNearTo | Call TestNearTo. | ||||||
| 49216 | RET NC | Return if the player is not near. | ||||||
|
Jump by the direction of the arch.
|
||||||||
| 49217 | PUSH BC | Stash BC on the stack. | ||||||
| 49218 | LD BC,49224 | Point BC at ArchDirectionTable. | ||||||
| 49221 | JP SetPlayerSpeed_Direction | Jump to SetPlayerSpeed_Direction. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 49130 | Up: Map | Next: 49224 |