Prev: D76C Up: Map Next: D7ED
D7D8: The update routine for something vanishing (graphics 12-15)
Whatever is taken up, destroyed or killed -- a bonus, a find, an object thrown at nothing, the knight himself -- becomes graphic 12, a small cloud, and goes through graphics 12 to 15 one a turn; after 15 its record is empty. If the last frame was on the screen, PUFF_SOUND makes the crackle of its going.
Input
IX The record
VANISHING D7D8 INC (IX+$00) Next frame; after 15 the low two bits come round to 0...
D7DB LD A,(IX+$00)
D7DE AND $03
D7E0 JR NZ,VANISHING_0
D7E2 LD (IX+$00),A ...and the record is emptied (A is 0), with the crackle if it was seen
D7E5 JP PUFF_SOUND
VANISHING_0 D7E8 RES 1,(IX+$07) Clear the drawn flag, which the drawing sets again
D7EC RET
Prev: D76C Up: Map Next: D7ED