![]() |
Routines |
| Prev: C948 | Up: Map | Next: C97A |
|
Used by the routine at player_controls.
While the player is walking forward, jumping, or on the room-entry walk, the legs cycle and a footstep sounds. When none of those applies the legs do not simply stop: legs_to_rest carries the stride on to one of the two standing frames.
|
||||||||
| handle_forward | C969 | LD A,(IX+$0C) | room-entry walk or jump: step | |||||
| C96C | AND $F0 | |||||||
| C96E | JR NZ,walk_step_sound | |||||||
| C970 | BIT 3,(IX+$0C) | |||||||
| C974 | JR NZ,walk_step_sound | |||||||
| C976 | BIT 2,C | forward not held: finish the stride | ||||||
| C978 | JR Z,legs_to_rest | |||||||
| Prev: C948 | Up: Map | Next: C97A |