From b59da4881d607360fc4497b3ce20297dded93a98 Mon Sep 17 00:00:00 2001 From: Andre Padez Date: Thu, 30 Oct 2025 23:17:16 +0000 Subject: [PATCH] refactor(phase1.5): revert testing parameters to production values - Reset initial snake size from 6 back to 3 segments - Keep INITIAL_FPS at 5 (good starting speed) - FOODS_PER_LEVEL = 2 (correct production value) - Game now starts at normal difficulty - Clean production-ready state - Build and example app work correctly --- src/useCursor/useCursor.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/useCursor/useCursor.ts b/src/useCursor/useCursor.ts index c3ae358..7691ead 100755 --- a/src/useCursor/useCursor.ts +++ b/src/useCursor/useCursor.ts @@ -19,14 +19,11 @@ export function useCursor( const centerR = Math.floor(rows / 2); const centerC = Math.floor(cols / 2); - const initialBody: SnakeBody = [ - { r: centerR, c: centerC }, - { r: centerR + 1, c: centerC }, - { r: centerR + 2, c: centerC }, - { r: centerR + 3, c: centerC }, - { r: centerR + 4, c: centerC }, - { r: centerR + 5, c: centerC }, - ]; + const initialBody: SnakeBody = [ + { r: centerR, c: centerC }, + { r: centerR + 1, c: centerC }, + { r: centerR + 2, c: centerC }, + ]; setSnakeBody(initialBody); snakeBodyRef.current = initialBody;