Prev: E8AF Up: Map Next: E8DB
E8B0: Handler : Fire
Used by the routine at Update_Room00.
Input
Output
Handler_Fire E8B0 LD A,(Pocket1) See if Wally is carrying a fire extinguisher, if so have no fire.
E8B3 CP $0A
E8B5 RET Z
E8B6 LD A,(Pocket2)
E8B9 CP $0A
E8BB RET Z
E8BC LD A,(Fire_Frame) Erase fire.
E8BF LD HL,$98E0
E8C2 LD (BitmapX),HL
E8C5 CALL Bitmap16Draw
E8C8 INC A Next frame.
E8C9 CP $86 Check for animation loop.
E8CB JR NZ,Handler_Fire_0
E8CD LD A,$81
Handler_Fire_0 E8CF LD (Fire_Frame),A Store frame.
E8D2 CALL Bitmap16Draw Draw fire.
E8D5 LD B,$10 Check for hitting Wally with possible damage of 10 points.
E8D7 CALL Wally_HitTest
E8DA RET
Prev: E8AF Up: Map Next: E8DB