Prev: A438 Up: Map Next: A45F
A445: The sound of a weapon's flight ending, or a burst ending
Used by the routine at SPIN_SPELL.
Called from WEAPON_GONE in SPIN_WEAPON, which all three weapons share, and so also at the end of every burst (COUNTDOWN_ACTOR jumps there). It takes its starting pitch from $5E25, the count of creatures in the room, so it does not sound quite the same twice. Measured at about 6 milliseconds across 1900 to 3700 Hz.
SOUND_WEAPON_GONE A445 LD A,($5E25)
A448 INC A
A449 RLCA
A44A RLCA
A44B RLCA
A44C RLCA
A44D OR $0F
A44F AND $7F
A451 LD D,A
SOUND_WEAPON_GONE_0 A452 LD A,D
A453 XOR $20
A455 LD B,A
A456 CALL BEEP
A459 DEC D
A45A RET Z
A45B DEC D
A45C RET Z
A45D JR SOUND_WEAPON_GONE_0
Prev: A438 Up: Map Next: A45F