menu housekeeping

This commit is contained in:
scawful
2024-12-08 20:12:12 -05:00
parent 70f13ff1c0
commit efcd0f0ac3
3 changed files with 76 additions and 77 deletions

View File

@@ -172,7 +172,7 @@ MirrorGFX:
dw $2C62, $2C63, $2C72, $2C73 ; Mirror dw $2C62, $2C63, $2C72, $2C73 ; Mirror
; ============================================================================= ; =========================================================
; Collectibles ; Collectibles
; --------------------------------------------------------- ; ---------------------------------------------------------

View File

@@ -332,17 +332,16 @@ HUD_UpdateHearts:
JSR .draw_heart JSR .draw_heart
INX #2 INX #2
BRA .next_heart BRA .next_heart
.less_than_one_heart .less_than_one_heart
CMP.w #$0005 : BCC .half_heart_or_less CMP.w #$0005 : BCC .half_heart_or_less
LDY.w #$0004 LDY.w #$0004
BRA .draw_heart BRA .draw_heart
.half_heart_or_less .half_heart_or_less
CMP.w #$0001 : BCC .empty_heart CMP.w #$0001 : BCC .empty_heart
LDY.w #$0002 LDY.w #$0002
BRA .draw_heart BRA .draw_heart
.empty_heart .empty_heart
RTS RTS
@@ -352,8 +351,8 @@ HUD_UpdateHearts:
; if not, we have to move down one tile in the tilemap ; if not, we have to move down one tile in the tilemap
LDX.w #$0000 LDX.w #$0000
LDA.b $07 : CLC : ADC.w #$0040 : STA.b $07 LDA.b $07 : CLC : ADC.w #$0040 : STA.b $07
.no_line_change .no_line_change
LDA.b [$0A], Y : TXY : STA.b [$07], Y LDA.b [$0A], Y : TXY : STA.b [$07], Y
RTS RTS
} }