fix: center text and ship for sentences mode

- Ensure ship moves to and stays at center (400px) during sentence mode
- Remove width constraint to allow full text centering calculation
- Always call moveTowardTarget to smoothly center the ship
- Remove unused MAX_TEXT_WIDTH constant
This commit is contained in:
2025-11-04 17:08:34 +00:00
parent 166ccd7783
commit c271d1c4bf
2 changed files with 6 additions and 6 deletions
+1
View File
@@ -38,6 +38,7 @@ export function useGame(
} else {
// Keep ship centered for sentence/paragraph mode
cursorManager.setTargetX(400); // Canvas center
cursorManager.moveTowardTarget(deltaTime); // Move to center but don't track letters
}
renderBoardWrapped(letters);