Prev: 27873 Up: Map Next: 27911
27889: Sink Flower
Used by the routine at UpdateFlower.
Moves the flower down one pixel, and sets the time until the next move to 15 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 27889 LD A,(IX+2) A=the Y position of the flower.
27892 CP 183 Jump to ExplodeRobbie_Flower if the flower has reached the bottom.
27894 JP NC,ExplodeRobbie_Flower
27897 INC (IX+2) Increment the Y position of the flower by one.
27900 LD A,(24123) A=the number of bugs eating the flower from BugsEating_Flower.
27903 SLA A Double it.
27905 NEG Negate it.
27907 ADD A,15 Add 15.
27909 JR UpdateFlower_SetTimer Jump to UpdateFlower_SetTimer.
Prev: 27873 Up: Map Next: 27911