Skip to content

Commit 0a931e8

Browse files
committed
enabled next box control when crash is enabled, added palette change on crash
1 parent 4459a47 commit 0a931e8

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/gamemodestate/updatecounters.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ gameModeState_updateCountersAndNonPlayerState:
66
; next code makes acc behave as normal
77
; (dont edit unless you know what you're doing)
88
lda newlyPressedButtons_player1
9-
and #$20
9+
and #BUTTON_SELECT
1010
beq @ret
1111
lda displayNextPiece
1212
eor #$01

src/nmi/render_mode_play_and_demo.asm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ render_mode_play_and_demo:
103103
sta PPUADDR
104104
lda #$D8
105105
sta PPUDATA
106+
lda #$3F
107+
sta PPUADDR
108+
lda #$0D
109+
sta PPUADDR
110+
lda #$3D
111+
sta PPUDATA
106112
@noCrash:
107113
lda scoringModifier
108114
cmp #SCORING_HIDDEN

src/sprites/piece.asm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,12 @@ stageSpriteForCurrentPiece_return:
136136
rts
137137

138138
stageSpriteForNextPiece:
139-
lda qualFlag
139+
lda crashMode
140+
cmp #CRASH_OFF
141+
bne @sometimesNextBox
142+
lda qualFlag
140143
beq @alwaysNextBox
144+
@sometimesNextBox:
141145
lda displayNextPiece
142146
bne @ret
143147

0 commit comments

Comments
 (0)