Skip to content

Commit aad48e3

Browse files
authored
Add marathon modes 3 & 4 (#140)
1 parent d4ffde9 commit aad48e3

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

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/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)