Skip to content

Commit 7fe0610

Browse files
committed
fix: remove always next box, move git link down
1 parent 72f6db0 commit 7fe0610

File tree

7 files changed

+20
-25
lines changed

7 files changed

+20
-25
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## [unreleased]
4+
* Crash Detection / Simulation
45
* Crunch Mode
56
* Marathon Mode
67
* Added hidden score option
@@ -14,6 +15,7 @@
1415
* Fixed CNROM legal screen CHR bank
1516
* Fixed CNROM legal to title flicker
1617
* Block Tool pieces wrap around
18+
* Always Next Box removed
1719
* 0001 seeds are ignored
1820

1921
## [v5 tournament]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Like in the original ROM, holding `a` `b` `select` and then pressing `start` wil
7676

7777
![Tetris](./assets/screens/levelmenu.png)
7878

79-
Same gameplay as A-Type, with some improvements: no score cap, no rocket, no curtain, no music, always next box, better pause, start on any level.
79+
Same gameplay as A-Type, with some improvements: no score cap, no rocket, no curtain, no music, better pause, start on any level.
8080

8181
### T-Spins
8282

src/constants.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ LINECAP_FLOOR := 2
103103
LINECAP_INVISIBLE := 3
104104
LINECAP_HALT := 4
105105

106-
CRASH_SHOW := 0
106+
CRASH_SHOW := 0
107107
CRASH_TOPOUT := 1
108108
CRASH_CRASH := 2
109109
CRASH_OFF := 3
@@ -112,12 +112,12 @@ LINECAP_WHEN_STRING_OFFSET := $10
112112
LINECAP_HOW_STRING_OFFSET := $12
113113

114114
MENU_SPRITE_Y_BASE := $47
115-
MENU_MAX_Y_SCROLL := $78
115+
MENU_MAX_Y_SCROLL := $80
116116
MENU_TOP_MARGIN_SCROLL := 7 ; in blocks
117117

118118
; menuConfigSizeLookup
119119
; menu ram is defined at menuRAM in ./ram.asm
120-
.macro MENUSIZES
120+
.macro MENUSIZES
121121
.byte $0 ; MODE_TETRIS
122122
.byte $0 ; MODE_TSPINS
123123
.byte $0 ; MODE_SEED

src/gamemode/gametypemenu/menu.asm

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -487,19 +487,18 @@ menuYTmp := tmp2
487487
lda menuCounter
488488
cmp #MODE_SCORE_DISPLAY
489489
beq @renderScoreName
490-
490+
491491
cmp #MODE_CRASH
492492
beq @renderCrashMode
493493

494-
ldx oamStagingLength
495494

496-
; get Y offset
497495
lda menuCounter
498-
asl
499-
asl
500-
asl
501-
adc #MENU_SPRITE_Y_BASE + 1
502-
sbc menuScrollY
496+
jsr menuItemY16Offset
497+
bne @loopNext
498+
txa
499+
500+
ldx oamStagingLength
501+
503502
sta oamStaging, x
504503
inx
505504
lda menuVars, y

src/nametables/game_type_menu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ drawTiles(buffer, lookup, `
7777
#a PAL MODE d#
7878
#a CRASH MODE d#
7979
#a d#
80-
#a V5 d#
8180
#a d#
81+
#a V5 d#
8282
#a d#
8383
#a d#
8484
#a d#
@@ -101,7 +101,7 @@ 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 = 13;
104+
const urlY = 14;
105105
drawRect(extra, urlX, urlY, 12, 1, 0x74);
106106
drawRect(extra, urlX+12, urlY, 12, 1, 0x84);
107107

@@ -134,8 +134,8 @@ drawAttrs(extra, [`
134134
2222222222222222
135135
2222222222222222
136136
2222222222222222
137-
2333333333333332
138137
2222222222222222
138+
2333333333333332
139139
`, screen]);
140140

141141
writeRLE(

src/nametables/game_type_menu_nametable_extra.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
�"��<B�;��
1010
���<�r;��
1111
���<a�;�� 
12-
���<rb;��<�r;�tuvwxyz{|}~������������<��;��<a`;��<�p;��<��;��<�a;��<��;��<bs;��<��;��<sa;��<aq;��<�a;��<a�;��<qb;��<�r;��<br;��<r�;��<������� ��
12+
���<rb;��<�r;��<��;��tuvwxyz{|}~������������<a`;��<�p;��<��;��<�a;��<��;��<bs;��<��;��<sa;��<aq;��<�a;��<a�;��<qb;��<�r;��<br;��<r�;��<������� ��

src/sprites/piece.asm

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ stageSpriteForCurrentPiece_actual:
8383
ldy oamStagingLength
8484
lda #$04
8585
sta generalCounter2
86-
@stageMino:
86+
@stageMino:
8787
lda orientationTable,x
8888
asl a
8989
asl a
@@ -116,7 +116,7 @@ stageSpriteForCurrentPiece_actual:
116116
sta oamStaging,y
117117
jmp @finishLoop
118118

119-
@validYCoordinate:
119+
@validYCoordinate:
120120
inc oamStagingLength
121121
iny
122122
lda orientationTable,x
@@ -126,7 +126,7 @@ stageSpriteForCurrentPiece_actual:
126126
clc
127127
adc generalCounter3
128128
sta oamStaging,y
129-
@finishLoop:
129+
@finishLoop:
130130
inc oamStagingLength
131131
iny
132132
inx
@@ -136,12 +136,6 @@ stageSpriteForCurrentPiece_return:
136136
rts
137137

138138
stageSpriteForNextPiece:
139-
lda crashMode
140-
cmp #CRASH_OFF
141-
bne @sometimesNextBox
142-
lda qualFlag
143-
beq @alwaysNextBox
144-
@sometimesNextBox:
145139
lda displayNextPiece
146140
bne @ret
147141

0 commit comments

Comments
 (0)