F63C: Update and draw bombs for the Arcade room.
Arcade_UpdateBombs |
F63C |
LD IX,Arcade_BombData |
|
F640 |
LD B,$03 |
Arcade_UpdateBombs_0 |
F642 |
LD A,(IX+$00) |
|
F645 |
CP $FF |
|
F647 |
JR NZ,Arcade_UpdateBombs_1 |
|
F649 |
INC IX |
|
F64B |
INC IX |
|
F64D |
INC IX |
|
F64F |
JR Arcade_UpdateBombs_3 |
Arcade_UpdateBombs_1 |
F651 |
LD L,(IX+$00) |
|
F654 |
LD H,(IX+$01) |
|
F657 |
LD C,(IX+$02) |
|
F65A |
INC IX |
|
F65C |
INC IX |
|
F65E |
INC IX |
|
F660 |
LD A,C |
|
F661 |
LD (BitmapX),HL |
|
F664 |
CALL Bitmap16Draw |
|
F667 |
INC H |
|
F668 |
INC H |
|
F669 |
LD A,H |
|
F66A |
CP $A8 |
|
F66C |
JR C,Arcade_UpdateBombs_2 |
|
F66E |
LD (IX-$03),$FF |
|
F672 |
DEC H |
|
F673 |
DEC H |
|
F674 |
CALL Arcade_CreateExplosions |
|
F677 |
JR Arcade_UpdateBombs_3 |
Arcade_UpdateBombs_2 |
F679 |
LD (IX-$02),H |
|
F67C |
LD (BitmapX),HL |
|
F67F |
LD A,C |
|
F680 |
CALL Bitmap16Draw |
|
F683 |
PUSH BC |
|
F684 |
LD B,$02 |
|
F686 |
CALL Wally_HitTest |
|
F689 |
POP BC |
Arcade_UpdateBombs_3 |
F68A |
DJNZ Arcade_UpdateBombs_0 |
|
F68C |
RET |