Prev: D587 Up: Map Next: D5E4
D5D7: Play Click
Used by the routine at PauseGame.
Makes a click, which is a tone that gets a little lower each time that it is made, as it is a step on from the count at SoundEffectCounter which is also used by PlaySoundEffect.
PlayClick D5D7 LD HL,$A749 Take the counter of the sound effect, SoundEffectCounter.
D5DA INC (HL) Add one to it.
D5DB LD A,(HL) Fetch it.
D5DC ADD A,$40 Add 40 to make the pitch.
D5DE LD B,A Put the pitch in B.
D5DF LD C,$0C Set the length of the tone.
D5E1 JP PlayWaveSequence Jump to PlayWaveSequence to make the tone.
View the equivalent code in;
Prev: D587 Up: Map Next: D5E4