Prev: 6CE1 Up: Map Next: 6D07
6CF1: Sink Flower
Used by the routine at UpdateFlower.
Moves the flower down one pixel, and sets the time until the next move to 0F minus twice the number of bugs eating the flower. If the flower reaches the bottom of the play area it has been eaten, and Robbie is blown up using ExplodeRobbie_Flower.
Input
IX Flower object
SinkFlower 6CF1 LD A,(IX+$02) A=the Y position of the flower.
6CF4 CP $B7 Jump to ExplodeRobbie_Flower if the flower has reached the bottom.
6CF6 JP NC,ExplodeRobbie_Flower
6CF9 INC (IX+$02) Increment the Y position of the flower by one.
6CFC LD A,($5E3B) A=the number of bugs eating the flower from BugsEating_Flower.
6CFF SLA A Double it.
6D01 NEG Negate it.
6D03 ADD A,$0F Add 0F.
6D05 JR UpdateFlower_SetTimer Jump to UpdateFlower_SetTimer.
Prev: 6CE1 Up: Map Next: 6D07