Color bombs in the HUD according to bomb level in bomb-only mode

This commit is contained in:
2021-07-15 16:45:37 -07:00
parent 1071b834cd
commit 86a1f82d23
3 changed files with 30 additions and 0 deletions

View File

@@ -265,3 +265,20 @@ DrawSwordInMenu:
LDA.w #$FC51 : STA $04
RTL
;--------------------------------------------------------------------------------
BombIcon:
dw $207F, $207F, $3C88, $3C89, $2C88, $2C89, $2488, $2489, $2888, $2889,$2888, $2889
DrawBombOnHud:
PHB
LDA.w #$0149
LDX.w #$86B0
LDY.w #$C700
MVN $7E, $21
PLB
LDA.l SpecialBombs : AND.w #$00FF : BEQ .regularBombs
LDA.l !BOMB_LEVEL : AND.w #$00FF : ASL #2 : TAX
LDA.l BombIcon, X : STA.l $7EC71A
LDA.l BombIcon+2, X : STA.l $7EC71C
.regularBombs
RTL
;--------------------------------------------------------------------------------