![]() |
Routines |
| Prev: 46248 | Up: Map | Next: 46267 |
|
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 | 46253 | LD A,(IX+0) | Fetch the graphic number of the object. | |||||
| 46256 | AND %00000001 | Test whether it is an odd frame of the animation. | ||||||
| 46258 | RET NZ | Return if it is. | ||||||
| 46259 | LD B,128 | Set the pitch. | ||||||
| 46261 | LD A,(23458) | Fetch the frame counter from FrameCounter. | ||||||
| 46264 | CPL | Invert it. | ||||||
| 46265 | JR PlayFootstepsSound_Position | Jump to PlayFootstepsSound_Position. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 46248 | Up: Map | Next: 46267 |