Prev: 46779 Up: Map Next: 46798
46784: Play Mouse Sound
Used by the routine at HandleMouseSecondPart.
Plays the sound of a moving robot mouse, but only if the sprite number of the object is even.
Input
IX The address of the object
Return unless this is an even sprite.
PlayMouseSound 46784 LD A,(IX+0) Fetch the sprite number.
46787 AND %00000001 Keep only bit 0.
46789 RET NZ Return if the sprite number is odd.
Set a fixed pitch and join the footstep player.
46790 LD B,128 Set the pitch to 128.
46792 LD A,(23298) Fetch FrameCounter.
46795 CPL Invert it.
46796 JR PlayFootstepsSound_EveryFrame_TestPitch Jump to PlayFootstepsSound_EveryFrame_TestPitch.
View the equivalent code in;
Prev: 46779 Up: Map Next: 46798