Skip to content

Commit 7230812

Browse files
Merge pull request #45 from zohassadar/marathon_mode
marathon mode
2 parents 478dec3 + c77a0a6 commit 7230812

File tree

8 files changed

+39
-19
lines changed

8 files changed

+39
-19
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
@@ -193,6 +193,10 @@ Puts you ten lines before transition. The value given will be added to your scor
193193

194194
Setting the value to G causes the mode to act identical to the game genie code `SXTOKL`
195195

196+
### Marathon
197+
198+
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.
199+
196200
### Garbage
197201

198202
![Garbage](./assets/screens/garbage.png)

src/constants.asm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ MODE_FLOOR
6464
MODE_CRUNCH
6565
MODE_TAP
6666
MODE_TRANSITION
67+
MODE_MARATHON
6768
MODE_TAPQTY
6869
MODE_CHECKERBOARD
6970
MODE_GARBAGE
@@ -122,6 +123,7 @@ MENU_TOP_MARGIN_SCROLL := 7 ; in blocks
122123
.byte $F ; MODE_CRUNCH
123124
.byte $20 ; MODE_TAP
124125
.byte $10 ; MODE_TRANSITION
126+
.byte $0 ; MODE_MARATHON
125127
.byte $1F ; MODE_TAPQTY
126128
.byte $8 ; MODE_CHECKERBOARD
127129
.byte $4 ; MODE_GARBAGE
@@ -156,6 +158,7 @@ MENU_TOP_MARGIN_SCROLL := 7 ; in blocks
156158
.byte "CRUNCH"
157159
.byte "QCKTAP"
158160
.byte "TRNSTN"
161+
.byte "MARTHN"
159162
.byte "TAPQTY"
160163
.byte "CKRBRD"
161164
.byte "GARBGE"

src/nametables/game_type_menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ drawTiles(buffer, lookup, `
5353
#a CRUNCH d#
5454
#a (QUICK)TAP d#
5555
#a TRANSITION d#
56+
#a MARATHON d#
5657
#a TAP QUANTITY d#
5758
#a CHECKERBOARD d#
5859
#a GARBAGE 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: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
��<�r;��
33
��<��;����<a`;�� $"��<�p;�����<��;��  ��<�a;��^ _
44
��<��;��
5-
��<bs;��
5+
��<bs;��
6+

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)