Implement dynamic paragraph line splitting and fix line break detection

- Add calculateLineCount() to determine optimal lines based on text length (2-6 lines)
- Add getPerspectiveFactors() for appropriate perspective scaling per line count
- Replace hardcoded 6-line paragraphs with dynamic line calculation in both rendering and game logic
- Fix line break detection in useGameStatus to match rendering calculations exactly
- Extend keybindings to support all special characters: apostrophe, hyphen, colon, semicolon, quotes, parentheses, slash, ampersand, and digits
- Integrate greatFallsParagraphs content as wordList in paragraph mode
- Fix vertical centering to scale properly for variable line counts
This commit is contained in:
2025-11-05 10:26:45 +00:00
parent f8956dde6b
commit 961d86c035
8 changed files with 277 additions and 153 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ Full words fall from the top. Type each character of the word sequentially.
Multi-line sentences with perspective effect. Continue typing through line breaks.
### Paragraphs
4-line paragraphs with advanced perspective and smooth line transitions.
6-line paragraphs with advanced perspective and smooth line transitions.
## API