EF71: Room Event : Darts
Handler_Darts |
EF71 |
LD A,(Flag_BaddyInit) |
|
EF74 |
OR A |
|
EF75 |
JR NZ,Handler_Darts_0 |
|
EF77 |
LD A,$01 |
|
EF79 |
LD (Flag_BaddyInit),A |
|
EF7C |
LD HL,$8808 |
|
EF7F |
LD (Dart1_Pos),HL |
|
EF82 |
LD (BitmapX),HL |
|
EF85 |
LD A,(Dart_Bmp) |
|
EF88 |
CALL Bitmap16Draw |
|
EF8B |
LD HL,$A878 |
|
EF8E |
LD (Dart2_Pos),HL |
|
EF91 |
LD (BitmapX),HL |
|
EF94 |
CALL Bitmap16Draw |
|
EF97 |
RET |
Handler_Darts_0 |
EF98 |
LD IX,Dart1_Pos |
|
EF9C |
LD B,$02 |
|
EF9E |
LD A,(Dart_Bmp) |
|
EFA1 |
LD HL,$EF70 |
|
EFA4 |
DEC (HL) |
|
EFA5 |
JR NZ,Handler_Darts_1 |
|
EFA7 |
LD (HL),$02 |
|
EFA9 |
INC A |
|
EFAA |
CP $93 |
|
EFAC |
JR NZ,Handler_Darts_1 |
|
EFAE |
LD A,$90 |
Handler_Darts_1 |
EFB0 |
LD D,A |
Handler_Darts_2 |
EFB1 |
LD L,(IX+$00) |
|
EFB4 |
LD H,(IX+$01) |
|
EFB7 |
INC IX |
|
EFB9 |
INC IX |
|
EFBB |
LD A,(Dart_Bmp) |
|
EFBE |
LD (BitmapX),HL |
|
EFC1 |
CALL Bitmap16Draw |
|
EFC4 |
INC L |
|
EFC5 |
INC L |
|
EFC6 |
LD A,L |
|
EFC7 |
CP $F0 |
|
EFC9 |
JR C,Handler_Darts_3 |
|
EFCB |
LD L,$08 |
Handler_Darts_3 |
EFCD |
LD (BitmapX),HL |
|
EFD0 |
LD A,D |
|
EFD1 |
CALL Bitmap16Draw |
|
EFD4 |
LD (IX-$02),L |
|
EFD7 |
PUSH BC |
|
EFD8 |
PUSH DE |
|
EFD9 |
LD B,$01 |
|
EFDB |
CALL Wally_HitTest |
|
EFDE |
POP DE |
|
EFDF |
POP BC |
|
EFE0 |
DJNZ Handler_Darts_2 |
|
EFE2 |
LD A,D |
|
EFE3 |
LD (Dart_Bmp),A |
|
EFE6 |
RET |