Prev: 46655 Up: Map Next: 46671
46666: Play Sound From X Position
Used by the routine at HandleBlockMovingEastWest.
Plays a short sound whose pitch depends on the x position of the object (see PlaySoundFromHeight_PlaySoundFromValue).
Input
IX The address of the object
Use the x position as the pitch source.
PlaySoundFromXPosition 46666 LD A,(IX+1) Fetch the x position.
46669 JR PlaySoundFromHeight_PlaySoundFromValue Jump to PlaySoundFromHeight_PlaySoundFromValue.
Prev: 46655 Up: Map Next: 46671