![]() |
Routines |
| Prev: C8EF | Up: Map | Next: C8FD |
|
Used by the routine at handle_left_right.
Left and right turn the player a quarter at a time: right goes W, N, E, S (clockwise), left the other way. Bits 0-2 of +$0D are a pause between turns; while it counts down nothing else happens here, so holding a key turns the player once every third frame rather than every frame.
|
||||||||
| left_right_rotational | C8F2 | LD A,(IX+$0D) | pause still running? | |||||
| C8F5 | AND $07 | |||||||
| C8F7 | JR Z,rotational_turn | |||||||
| C8F9 | DEC (IX+$0D) | count it down and do nothing else | ||||||
| C8FC | RET | |||||||
| Prev: C8EF | Up: Map | Next: C8FD |