From a3c9f201beacb046fe5d604384c31f5d7c90f6d5 Mon Sep 17 00:00:00 2001 From: Andre Padez Date: Thu, 30 Oct 2025 22:47:49 +0000 Subject: [PATCH] test: increase initial game speed to 12 FPS for easier testing - Change INITIAL_FPS from 5 to 12 for faster gameplay - Makes it easier to test key buffering at higher speeds - Can be reverted once testing is complete --- src/useGame/useGameStatus.ts | 2 +- src/useGameStatus/useGameStatus.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/useGame/useGameStatus.ts b/src/useGame/useGameStatus.ts index 746de5a..26bd181 100755 --- a/src/useGame/useGameStatus.ts +++ b/src/useGame/useGameStatus.ts @@ -4,7 +4,7 @@ import type { UseRendererType } from "./useRenderer"; import type { UseSnakeType } from "./useSnake"; import type { UseFoodType } from "./useFood"; -const INITIAL_FPS = 5; +const INITIAL_FPS = 12; const FOODS_PER_LEVEL = 2; export function useGameStatus( diff --git a/src/useGameStatus/useGameStatus.ts b/src/useGameStatus/useGameStatus.ts index 083ef3c..bf88939 100755 --- a/src/useGameStatus/useGameStatus.ts +++ b/src/useGameStatus/useGameStatus.ts @@ -4,7 +4,7 @@ import type { UseBoardType } from "../useBoard"; import type { UseCursorType } from "../useCursor"; import type { UseFoodType } from "../useGame/useFood"; -const INITIAL_FPS = 5; +const INITIAL_FPS = 12; const FOODS_PER_LEVEL = 2; export function useGameStatus(