Skip to content

Commit f32a004

Browse files
committed
Added flags for clear count & line count passing 10
1 parent 9822248 commit f32a004

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/playstate/updatestats.asm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ playState_updateLinesAndStatistics:
1414
and #$0F
1515
cmp #$0A
1616
bmi @noCarry
17+
lda crashFlag
18+
ora #$04
19+
sta crashFlag
1720
lda lineClearStatsByType,x
1821
clc
1922
adc #$06
@@ -56,6 +59,9 @@ incrementLines:
5659
and #$0F
5760
cmp #$0A
5861
bmi checkLevelUp
62+
lda crashFlag
63+
ora #$01
64+
sta crashFlag
5965
lda lines
6066
clc
6167
adc #$06
@@ -67,6 +73,9 @@ incrementLines:
6773
and #$0F
6874
sta lines
6975
inc lines+1
76+
lda crashFlag
77+
ora #$02
78+
sta crashFlag
7079

7180
checkLevelUp:
7281
jsr calcBCDLinesAndTileQueue

0 commit comments

Comments
 (0)