Handler_BouncingAxe |
F1DE |
LD A,(Flag_BaddyInit) |
|
F1E1 |
OR A |
|
F1E2 |
JR NZ,Handler_BouncingAxe_0 |
|
F1E4 |
LD HL,$3A64 |
|
F1E7 |
LD (Axe_Position),HL |
|
F1EA |
LD (BitmapX),HL |
|
F1ED |
LD A,$04 |
|
F1EF |
LD (Axe_VelocityY),A |
|
F1F2 |
LD A,(Axe_Bitmap) |
|
F1F5 |
CALL Bitmap16Draw |
|
F1F8 |
LD A,$01 |
|
F1FA |
LD (Flag_BaddyInit),A |
|
F1FD |
RET |
Handler_BouncingAxe_0 |
F1FE |
LD HL,(Axe_Position) |
|
F201 |
LD (BitmapX),HL |
|
F204 |
LD A,(Axe_VelocityY) |
|
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 Sound_AxeBounce |
|
F216 |
JR Handler_BouncingAxe_3 |
Handler_BouncingAxe_2 |
F218 |
CP $38 |
|
F21A |
JR C,Handler_BouncingAxe_1 |
Handler_BouncingAxe_3 |
F21C |
LD A,(Axe_Bitmap) |
|
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 (Axe_Position),HL |
|
F233 |
LD A,D |
|
F234 |
LD (Axe_VelocityY),A |
|
F237 |
LD A,(Axe_Bitmap) |
|
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 (Axe_Bitmap),A |
Handler_BouncingAxe_6 |
F248 |
CALL Bitmap16Draw |
|
F24B |
LD B,$05 |
|
F24D |
CALL Wally_HitTest |
|
F250 |
RET |