Skip to content

Commit ba66e54

Browse files
committed
marathon mode
1 parent 478dec3 commit ba66e54

File tree

8 files changed

+42
-22
lines changed

8 files changed

+42
-22
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Fixed CNROM legal to title flicker
1313
* Block Tool pieces wrap around
1414
* Added hidden score option
15+
* Added marathon mode
1516

1617
## [v5 tournament]
1718
* Linecap Menu (from CTM Masters September 2022)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ This can be adjusted for transition or PAL games;
124124
| E | 706051 |
125125
| F | 752310 |
126126

127+
### Marathon
128+
129+
Play as long as you are able to surive at a consistent speed. While the level will increase normally, the drop rate and the points rewarded will remain fixed based on the starting level.
130+
127131
### Setups
128132

129133
![Setups](./assets/screens/setups.png)

src/constants.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ MODE_TETRIS
5757
MODE_TSPINS
5858
MODE_SEED
5959
MODE_PARITY
60+
MODE_MARATHON
6061
MODE_PACE
6162
MODE_PRESETS
6263
MODE_TYPEB
@@ -115,6 +116,7 @@ MENU_TOP_MARGIN_SCROLL := 7 ; in blocks
115116
.byte $0 ; MODE_TSPINS
116117
.byte $0 ; MODE_SEED
117118
.byte $0 ; MODE_PARITY
119+
.byte $0 ; MODE_MARATHON
118120
.byte $F ; MODE_PACE
119121
.byte $7 ; MODE_PRESETS
120122
.byte $8 ; MODE_TYPEB
@@ -149,6 +151,7 @@ MENU_TOP_MARGIN_SCROLL := 7 ; in blocks
149151
.byte "TSPINS"
150152
.byte " SEED "
151153
.byte "STACKN"
154+
.byte "MARTHN"
152155
.byte " PACE "
153156
.byte "SETUPS"
154157
.byte "B-TYPE"

src/nametables/game_type_menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ drawTiles(buffer, lookup, `
4646
#a T-SPINS d#
4747
#a SEED d#
4848
#a STACKING d#
49+
#a MARATHON d#
4950
#a PACE d#
5051
#a SETUPS d#
5152
#a B-TYPE d#
@@ -62,8 +63,8 @@ drawTiles(buffer, lookup, `
6263
#a INVISIBLE d#
6364
#a HARD DROP d#
6465
#a TAP/ROLL SPEED d#
65-
#a SCORING d#
6666
`);drawTiles(extra, lookup, `
67+
#a SCORING d#
6768
#a HZ DISPLAY d#
6869
#a INPUT DISPLAY d#
6970
#a DISABLE FLASH d#
@@ -93,15 +94,14 @@ drawTiles(buffer, lookup, `
9394
#a d#
9495
#a d#
9596
#a d#
96-
#a d#
9797
`);
9898

9999

100100
drawRect(buffer, 8, 2, 10, 5, 0xB0); // draw logo
101101
// drawRect(extra, 20, 0, 5, 5, 0x9A); // draw QR code
102102

103103
const urlX = 3;
104-
const urlY = 12;
104+
const urlY = 13;
105105
drawRect(extra, urlX, urlY, 12, 1, 0x74);
106106
drawRect(extra, urlX+12, urlY, 12, 1, 0x84);
107107

src/nametables/game_type_menu_nametable_extra.bin

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
�b;��#�
2-
"��<sr;���
3-
" ��<br;��
1+
�b;�� ��<sr;��#�
2+
"��<br;���
3+
" ��<r�;��
44
�
5-
 ��<r�;��
5+
 ��<�;��
66
�
7-
 ��<��;���"����<b�;��  ����<B@;��
8-
��<��;��
9-
�"��<b�;��
10-
���<B�;��
11-
���<�r;��<a�;��<rb;��tuvwxyz{|}~������������<�r;��<��;��<a`;��<�p;��<��;��<�a;��<��;��<bs;��<��;��<sa;��<aq;��<�a;��<a�;��<qb;��<�r;��<br;��<r�;��<������� ��
7+
 ��<b�;���"����<B@;��  ����<��;��
8+
��<b�;��
9+
�"��<B�;��
10+
���<�r;��
11+
���<a�;��<rb;��<�r;��tuvwxyz{|}~������������<��;��<a`;��<�p;��<��;��<�a;��<��;��<bs;��<��;��<sa;��<aq;��<�a;��<a�;��<qb;��<�r;��<br;��<r�;��<������� ��

src/nametables/game_type_menu_nametable_practise.bin

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
�b;��<sr;��<br; ������������ ��<r�; ������������ ��<��; ������������ ��<b�; ������������ ��<B@; ������������ ��<��;��<b�;��<B�;����<�r;��$��<a�;�����<rb;��
2-
��<�r;��
3-
��<��;����<a`;�� $"��<�p;�����<��;��  ��<�a;��^ _
4-
��<��;��
5-
��<bs;��
2+
��<�r;��
3+

4+
��<��;��
5+
��<a`;����<�p;�� $"��<��;�����<�a;��  ��<��;��^ _
6+
��<bs;��
7+
��<��;��
68
�
7-
" ��<��;��   
8-
 ��<sa;��
9+
" ��<sa;��   
10+
 ��<aq;��
911

10-
��<aq;����<�a;��
12+
��<�a;����<a�;��
1113
�
12-
"��<a�;��� ��i ��<qb;�� ��<�r;��
13-
���<br;��
14+
"��<qb;��� ��i ��<�r;�� ��<br;��
15+
���<r�;��
1416
O���
15-
��<r�;�� ��<���jZ����fU��2��
17+
��<���jZ����fU��2��

src/playstate/active.asm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ drop_tetrimino_actual:
369369
lookupDropSpeed:
370370
lda #$01
371371
ldx levelNumber
372+
ldy practiseType
373+
cpy #MODE_MARATHON
374+
bne @notMarathon
375+
ldx startLevel
376+
@notMarathon:
372377
cpx #$1D
373378
bcs @noTableLookup
374379
lda framesPerDropTableNTSC,x

src/playstate/updatestats.asm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,11 @@ addLineClearPoints:
323323
sta factorA24+1
324324
sta factorA24+2
325325
lda levelNumber
326+
ldy practiseType
327+
cpy #MODE_MARATHON
328+
bne @notMarathon
329+
lda startLevel
330+
@notMarathon:
326331
cmp #$FF
327332
bne @noverflow
328333
lda #1

0 commit comments

Comments
 (0)