Prev: B462 Up: Map Next: B472
B467: Sound: a note pitched by position
The pitch follows the sum of X, Y and Z, so it changes whichever way the object moves. Used for charms, tables and chests on the move, ghosts turning, a portcullis rising, the repel spell, and anything that vanishes through the type 111 handler.
Input
IX the object
sound_pitch_from_xyz B467 LD A,(IX+$01) A = X + Y + Z
B46A ADD A,(IX+$02)
B46D ADD A,(IX+$03)
B470 JR sound_pitch_from_a
Prev: B462 Up: Map Next: B472