Prev: 46671 Up: Map Next: 46687
46676: Play Sound From Position
Used by the routine at PlaySoundAndRedraw.
Plays a short sound whose pitch depends on the sum of the coordinates of the object (see PlaySoundFromHeight_PlaySoundFromValue).
Input
IX The address of the object
Add x, y and z and play the sound.
PlaySoundFromPosition 46676 LD A,(IX+1) Fetch the x position.
46679 ADD A,(IX+2) Add the y position.
46682 ADD A,(IX+3) Add the z position.
46685 JR PlaySoundFromHeight_PlaySoundFromValue Jump to PlaySoundFromHeight_PlaySoundFromValue.
View the equivalent code in;
Prev: 46671 Up: Map Next: 46687