![]() |
Routines |
| Prev: B4A8 | Up: Map | Next: B4BB |
|
Used by the routine at HandleGuardBottomHalf.
Plays the footsteps of a guard or the wizard, but only on every other frame of the walking animation. It carries on into PlayFootstepsSound_Position with a fixed pitch.
|
||||||||
|
Play on even frames of the walking animation.
|
||||||||
| PlayGuardFootstepsSound | B4AD | LD A,(IX+$00) | Fetch the graphic number of the object. | |||||
| B4B0 | AND %00000001 | Test whether it is an odd frame of the animation. | ||||||
| B4B2 | RET NZ | Return if it is. | ||||||
| B4B3 | LD B,$80 | Set the pitch. | ||||||
| B4B5 | LD A,($5BA2) | Fetch the frame counter from FrameCounter. | ||||||
| B4B8 | CPL | Invert it. | ||||||
| B4B9 | JR PlayFootstepsSound_Position | Jump to PlayFootstepsSound_Position. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: B4A8 | Up: Map | Next: B4BB |