![]() |
Routines |
| Prev: C9F3 | Up: Map | Next: CA17 |
|
Used by the routine at move_player_walk.
First adds in the nudge in +$0E and +$0F, which an archway leaves there (arch_nudge_loop) to steer the player towards the middle of the arch, and clears it. Then dispatches on the facing to add 3 units in that direction. The nudge is only ever used when the player is walking.
|
||||
| calc_plyr_dXY | C9FB | LD A,(IX+$09) | dX += nudge X, dY += nudge Y | |
| C9FE | ADD A,(IX+$0E) | |||
| CA01 | LD (IX+$09),A | |||
| CA04 | LD A,(IX+$0A) | |||
| CA07 | ADD A,(IX+$0F) | |||
| CA0A | LD (IX+$0A),A | |||
| CA0D | XOR A | the nudge is used up | ||
| CA0E | LD (IX+$0E),A | |||
| CA11 | LD (IX+$0F),A | |||
| CA14 | LD BC,walk_step_tbl | the table of steps, walk_step_tbl | ||
| Prev: C9F3 | Up: Map | Next: CA17 |