Prev: EE8F Up: Map Next: EF04
EEDD: Draws food for current room at (x, $a8)
Used by the routine at Update_Room00.
Input
Output
Handler_Food EEDD LD A,(Flag_FoodDrawn) Check flag, stops repeated drawing.
EEE0 OR A
EEE1 RET NZ
EEE2 LD A,$01 Set flag.
EEE4 LD (Flag_FoodDrawn),A
EEE7 LD HL,(Food_ActivePtr) Get info of currently active food.
EEEA LD A,(Wally_RoomNo) See if is same room as Wally, returning if not.
EEED CP (HL)
EEEE JR Z,Handler_Food_0
EEF0 LD DE,$0016
EEF3 ADD HL,DE
EEF4 CP (HL)
EEF5 RET NZ
Handler_Food_0 EEF6 INC HL Get X position of food.
EEF7 LD E,(HL)
EEF8 INC HL Get bitmap to display.
EEF9 LD A,(HL)
EEFA LD D,$A8 Y position.
EEFC LD (BitmapX),DE Draw food item.
EF00 CALL Bitmap16Draw
EF03 RET
Prev: EE8F Up: Map Next: EF04