Prev: B64F Up: Map Next: B65F
B654: 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 B654 LD A,(IX+$01) Fetch the x position.
B657 ADD A,(IX+$02) Add the y position.
B65A ADD A,(IX+$03) Add the z position.
B65D JR PlaySoundFromHeight_PlaySoundFromValue Jump to PlaySoundFromHeight_PlaySoundFromValue.
View the equivalent code in;
Prev: B64F Up: Map Next: B65F