Commit 41f977c
committed
refactor(game): extract constants from InfiniteRunner to improve code organization
- Created utils/constants/games/infinite-runner.ts with all game constants
- Moved physics, speed configs, game costs, themes, audio config, scoring, timing, and quiz questions to constants file
- Refactored InfiniteRunner.tsx to use imported constants instead of hardcoded values
- Fixed TypeScript type narrowing issues with obstacle type checks
- Improved code maintainability and readability
- All constants now centralized in single source of truth1 parent 610fe70 commit 41f977c
File tree
3 files changed
+646
-482
lines changed- components/games
- utils/constants/games
3 files changed
+646
-482
lines changed
0 commit comments