Prev: B462 Up: Map Next: B472
B467: Play Sound From Position
Used by the routines at DrawMovingObject, HandleGhost and HandleMovingPortcullis.
Plays the tone for a special object, a ghost or a portcullis that is moving, with a pitch made from the sum of its three coordinates.
Input
IX Address of the object
Sum the three coordinates for the pitch.
PlaySoundFromPosition B467 LD A,(IX+$01) Fetch the X coordinate of the object.
B46A ADD A,(IX+$02) Add the Y coordinate.
B46D ADD A,(IX+$03) Add the Z coordinate.
B470 JR PlaySoundFromHeight_PlaySoundFromValue Jump to PlaySoundFromHeight_PlaySoundFromValue.
View the equivalent code in;
Prev: B462 Up: Map Next: B472