Skip to content

Commit 32c0aac

Browse files
committed
added graphics & sfx
1 parent 5850530 commit 32c0aac

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

src/nmi/render_mode_play_and_demo.asm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ render_mode_play_and_demo:
9090
; 3 added in float
9191

9292
; scorecap
93+
lda crashFlag
94+
cmp #$F0
95+
bne @noCrash
96+
lda #$20
97+
sta PPUADDR
98+
lda #$FD
99+
sta PPUADDR
100+
lda #$D8
101+
sta PPUDATA
102+
@noCrash:
93103
lda scoringModifier
94104
cmp #SCORING_HIDDEN
95105
bne @notHidden

src/playstate/updatestats.asm

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,15 +692,15 @@ testCrash:
692692
bcs @continue
693693
lda #$F0
694694
sta crashFlag
695-
bne @allegroClear
695+
bne @crashGraphics
696696
@continue:
697697
cmp #$36
698698
bcc @nextSwitch
699699
cmp #$49
700700
bcs @nextSwitch
701701
lda #$F0
702702
sta crashFlag
703-
bne @allegroClear
703+
bne @crashGraphics
704704

705705
@nextSwitch:
706706
lda switchTable-2,x ; adding cycles to advance to next switch routine
@@ -712,6 +712,15 @@ testCrash:
712712
lda #$00
713713
sta allegroIndex
714714
rts
715+
@crashGraphics:
716+
lda #$00
717+
sta allegroIndex
718+
lda outOfDateRenderFlags
719+
ora #$04
720+
sta outOfDateRenderFlags
721+
lda #$02
722+
sta soundEffectSlot0Init
723+
rts
715724

716725
factorTable:
717726
.byte $53, $88, $7D, $7D, $7D

0 commit comments

Comments
 (0)