From db7e7bbd4556f1f62c639cbdc91cfe45168ea051 Mon Sep 17 00:00:00 2001 From: Andre Padez Date: Wed, 5 Nov 2025 09:14:24 +0000 Subject: [PATCH] Change sentences and paragraphs spawn position to 0px (top of screen) --- src/useGameStatus/useGameStatus.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/useGameStatus/useGameStatus.ts b/src/useGameStatus/useGameStatus.ts index 26f7759..becd452 100755 --- a/src/useGameStatus/useGameStatus.ts +++ b/src/useGameStatus/useGameStatus.ts @@ -70,10 +70,10 @@ export function useGameStatus(_onGameLoopTick?: (deltaTime: number, letters: Fal const spawnWidth = CANVAS_WIDTH - MARGIN_LEFT - MARGIN_RIGHT; const spawnX = isCenteredMode ? CANVAS_WIDTH / 2 : (MARGIN_LEFT + Math.random() * spawnWidth); - // Sentences and paragraphs spawn offscreen from top; letters/words spawn in top half + // Sentences and paragraphs spawn at top; letters/words spawn in top half let randomY: number; if (isCenteredMode) { - randomY = -100 - Math.random() * 100; // Offscreen: -200 to -100 + randomY = 0; // Start at top of screen } else { randomY = Math.random() * 150; // Between 0-150 (top half of screen) }