Prev: B5EE Up: Map Next: B619
B604: The sound of the robot materialising
Used by the routine at PLAYER_APPEARING.
A rising sweep, one wave a step, for graphics 56 to 62 (PLAYER_APPEARING), the sparkle run backwards as a life starts. It starts from four times the graphic's low three bits, plus 3 -- 3 at graphic 56, 27 at 62 -- and steps down to 1, the half-wave count four times the step: higher as it goes. As Knight Lore's sound_materialise.
Input
IX the object
MATERIALISE_SOUND B604 LD A,(IX+$00) C = 4 * (graphic AND 7) + 3 (the rotation brings bits 6-7 in as bits 0-1, but they are 0 here)
B607 RLCA
B608 RLCA
B609 AND $1F
B60B OR $03
B60D LD C,A
MATERIALISE_SOUND_0 B60E LD A,C one wave at a half-wave count of 4 * C
B60F RLCA
B610 RLCA
B611 LD B,A
B612 CALL CLICK
B615 DEC C until C runs out
B616 JR NZ,MATERIALISE_SOUND_0
B618 RET
Prev: B5EE Up: Map Next: B619