feat: implement startingLevel option and remove INITIAL_FPS constant

- Remove INITIAL_FPS constant entirely - no longer exists
- Add startingLevel to GameOptions (defaults to 1)
- FPS now equals currentLevel (1:1 ratio)
- Points per food always equals currentLevel
- Game can start at any level with appropriate speed/scoring
This commit is contained in:
2025-10-31 00:14:39 +00:00
parent 58622c64d1
commit 477bcdd9f3
3 changed files with 67 additions and 62 deletions
+1
View File
@@ -32,6 +32,7 @@ export type GameOptions = {
cols: number;
rows: number;
timeLimit?: number;
startingLevel?: number;
};
// ============================================================================