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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user