You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Singles, doubles, and triples subtract their normal point value.
Score is clamped at zero.
Implementation
Added MODE_TETRISONLY.
Added a menu entry for Tetris Only.
Added Tetris Only scoring logic.
Refactored line-clear point calculation into a shared helper.
Menu
Adding an additional game mode required a menu alignment adjustment so menu selections continue to correspond to the correct mode after reducing the number of blank rows at the top of the menu.
Note: On my local machine, build.js reports a Node.js
"invalid table size / heap out of memory" error after the
link step, although the ROM is successfully generated and
functions correctly. I have not yet determined whether this
is environment-specific.
Note: On my local machine, build.js reports a Node.js "invalid table size / heap out of memory" error after the link step, although the ROM is successfully generated and functions correctly. I have not yet determined whether this is environment-specific.
This problem appears to be introduced in node 26.3.0 and is related to this loop:
Ah, other than that issue everything seemed to work as intended. I'm quite bad at Tetris so I'm not able to test the scoring at higher levels but it worked as designed for levels 1 and 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Tetris Only mode
New practice mode where:
Implementation
MODE_TETRISONLY.Menu
Adding an additional game mode required a menu alignment adjustment so menu selections continue to correspond to the correct mode after reducing the number of blank rows at the top of the menu.