EE00: Draw and move the 3 Ton weight.
Handler_ThreeTon |
EE00 |
LD A,(Flag_BaddyInit) |
|
EE03 |
OR A |
|
EE04 |
JR NZ,Handler_ThreeTon_0 |
|
EE06 |
LD A,$01 |
|
EE08 |
LD (Flag_BaddyInit),A |
|
EE0B |
LD A,$64 |
|
EE0D |
LD (Weight_Count),A |
|
EE10 |
LD A,$30 |
|
EE12 |
LD (Weight_Y),A |
|
EE15 |
LD H,A |
|
EE16 |
LD L,$88 |
|
EE18 |
JR Weight_draw |
Handler_ThreeTon_0 |
EE1A |
LD A,(Weight_Count) |
|
EE1D |
OR A |
|
EE1E |
JR Z,Handler_ThreeTon_1 |
|
EE20 |
DEC A |
|
EE21 |
LD (Weight_Count),A |
|
EE24 |
RET |
Handler_ThreeTon_1 |
EE25 |
LD A,(Weight_Y) |
|
EE28 |
LD H,A |
|
EE29 |
LD L,$88 |
|
EE2B |
CP $70 |
|
EE2D |
JR Z,Handler_ThreeTon_2 |
|
EE2F |
LD (BitmapX),HL |
|
EE32 |
LD A,$7F |
|
EE34 |
CALL Bitmap16Draw |
|
EE37 |
LD A,H |
|
EE38 |
ADD A,$10 |
|
EE3A |
LD (BitmapY),A |
|
EE3D |
LD A,$80 |
|
EE3F |
CALL Bitmap16Draw |
|
EE42 |
INC H |
|
EE43 |
INC H |
|
EE44 |
LD A,H |
|
EE45 |
LD (Weight_Y),A |
Weight_draw |
EE48 |
LD (BitmapX),HL |
|
EE4B |
LD A,$7F |
|
EE4D |
CALL Bitmap16Draw |
|
EE50 |
LD A,H |
|
EE51 |
ADD A,$10 |
|
EE53 |
LD H,A |
|
EE54 |
LD (BitmapY),A |
|
EE57 |
LD A,$80 |
|
EE59 |
CALL Bitmap16Draw |
Handler_ThreeTon_2 |
EE5C |
LD B,$02 |
|
EE5E |
CALL Wally_HitTest |
|
EE61 |
RET |