Skip to content

Commit eb8a77f

Browse files
committed
Merge remote-tracking branch 'origin/master' into keyboard_score_entry
2 parents d940c77 + 77ebbde commit eb8a77f

File tree

7 files changed

+12
-10
lines changed

7 files changed

+12
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ tetris.map
1111
tetris.dbg
1212
release/*
1313
target
14+
.env

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Fixed a glitch in Hard Drop Mode
77
* Fixed line based floor caps outside of levelups
88
* Reset scores when no SRAM is present
9+
* Add Marathon modes 3 & 4 where scoring scales normally
910

1011
## v6
1112
* Crunch Trainer

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ Play as long as you are able to survive at a consistent speed.
203203
0. Level transitions do not happen, game remains on the same level for as long as you are able to survive.
204204
1. Levels will transition normally, but speed and points will remain fixed based on your starting level.
205205
2. Similar to 1, speed and points will remain fixed based on the starting level you choose, but actual game will begin at level 0.
206+
3. Same as 1, but scoring scales normally
207+
4. Same as 2, but scoring scales normally
206208

207209
### Garbage
208210

src/boot.asm

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,6 @@
7676
sta PPUMASK
7777
jsr LE006
7878
jsr updateAudio2
79-
lda #$C0
80-
sta stack
81-
lda #$80
82-
sta stack+1
83-
lda #$35
84-
sta stack+3
85-
lda #$AC
86-
sta stack+4
8779
jsr updateAudioWaitForNmiAndDisablePpuRendering
8880
jsr disableNmi
8981
jsr drawBlackBGPalette

src/constants.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ MENU_TOP_MARGIN_SCROLL := 7 ; in blocks
144144
.byte $F ; MODE_CRUNCH
145145
.byte $20 ; MODE_TAP
146146
.byte $10 ; MODE_TRANSITION
147-
.byte $2 ; MODE_MARATHON
147+
.byte $4 ; MODE_MARATHON
148148
.byte $1F ; MODE_TAPQTY
149149
.byte $8 ; MODE_CHECKERBOARD
150150
.byte $4 ; MODE_GARBAGE

src/gamemode/levelmenu.asm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ levelMenuCheckStartGame:
133133
cpy #MODE_MARATHON
134134
bne @noLevelModification
135135
ldy marathonModifier
136-
cpy #2 ; marathon mode 2 starts at level 0
136+
cpy #2 ; marathon modes 2 & 4 starts at level 0
137+
beq @startAtZero
138+
cpy #4
137139
bne @noLevelModification
140+
@startAtZero:
138141
lda #0
139142
@noLevelModification:
140143
sta levelNumber

src/playstate/updatestats.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,9 @@ addLineClearPoints:
349349
ldy practiseType
350350
cpy #MODE_MARATHON
351351
bne @notMarathon
352+
ldy marathonModifier
353+
cpy #3 ; Marathon modes 3 + 4 score normally
354+
bcs @notMarathon
352355
lda startLevel
353356
@notMarathon:
354357
sta factorA24+0

0 commit comments

Comments
 (0)