![]() |
Routines |
| Prev: 46178 | Up: Map | Next: 46194 |
|
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.
|
||||||||
|
Sum the three coordinates for the pitch.
|
||||||||
| PlaySoundFromPosition | 46183 | LD A,(IX+1) | Fetch the X coordinate of the object. | |||||
| 46186 | ADD A,(IX+2) | Add the Y coordinate. | ||||||
| 46189 | ADD A,(IX+3) | Add the Z coordinate. | ||||||
| 46192 | JR PlaySoundFromHeight_PlaySoundFromValue | Jump to PlaySoundFromHeight_PlaySoundFromValue. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 46178 | Up: Map | Next: 46194 |