Prev: F1C5 Up: Map Next: F251
F1DE: Routine at F1DE
Used by the routine at Update_Room00.
Input
Output
Handler_BouncingAxe F1DE LD A,(Flag_BaddyInit)
F1E1 OR A
F1E2 JR NZ,Handler_BouncingAxe_0
Initialise
F1E4 LD HL,$3A64
F1E7 LD ($F1DA),HL
F1EA LD (BitmapX),HL
F1ED LD A,$04
F1EF LD ($F1DC),A
F1F2 LD A,($F1DD)
F1F5 CALL Bitmap16Draw
F1F8 LD A,$01
F1FA LD (Flag_BaddyInit),A
F1FD RET
Animate
Handler_BouncingAxe_0 F1FE LD HL,($F1DA)
F201 LD (BitmapX),HL
F204 LD A,($F1DC)
F207 LD D,A
F208 LD A,H
F209 ADD A,D
F20A LD H,A
F20B CP $A8
F20D JR C,Handler_BouncingAxe_2
Handler_BouncingAxe_1 F20F LD A,D
F210 NEG
F212 LD D,A
F213 CALL $F1C5
F216 JR Handler_BouncingAxe_3
Handler_BouncingAxe_2 F218 CP $38
F21A JR C,Handler_BouncingAxe_1
Handler_BouncingAxe_3 F21C LD A,($F1DD)
F21F CALL Bitmap16Draw
F222 INC L
F223 LD A,L
F224 CP $E8
F226 JR C,Handler_BouncingAxe_4
F228 LD HL,$9808
F22B LD D,$FC
Handler_BouncingAxe_4 F22D LD (BitmapX),HL
F230 LD ($F1DA),HL
F233 LD A,D
F234 LD ($F1DC),A
F237 LD A,($F1DD)
F23A BIT 0,L
F23C JR Z,Handler_BouncingAxe_6
F23E INC A
F23F CP $BB
F241 JR NZ,Handler_BouncingAxe_5
F243 LD A,$B3
Handler_BouncingAxe_5 F245 LD ($F1DD),A
Handler_BouncingAxe_6 F248 CALL Bitmap16Draw
F24B LD B,$05
F24D CALL Wally_HitTest
F250 RET
Prev: F1C5 Up: Map Next: F251