Files
vim-snake/src/useGameStatus
pastilhas 1f654485ca fix(phase1.4): save current level BEFORE leveling up for score calculation
- Save pointsToAdd = levelRef.current at start of setScore
- Use saved value for scoring, not levelRef.current which gets changed
- This ensures 1st food adds 1 point at level 1, then level up to 2
- 2nd food adds 2 points at level 2, then level up to 3, etc.
- Correct sequence: +1, +2, +3, +4... with level ups after each
2025-10-30 23:07:51 +00:00
..