fix(phase1.4): fix score calculation - remove wrong decrement on level up

- Remove the buggy 'newScore--' line that was penalizing level ups
- Score now correctly accumulates: each food = (+1 * current_level) points
- Level 1: 1 food = +1 point
- Level 2: 1 food = +2 points
- Level 3: 1 food = +3 points, etc.
- No penalty on leveling up, just speed increase
- Score calculation now makes intuitive sense
This commit is contained in:
2025-10-30 22:54:34 +00:00
parent b671c7452c
commit 6926a080f6
-1
View File
@@ -92,7 +92,6 @@ export function useGameStatus(
setScore((prev) => {
let newScore = prev + levelRef.current;
if (foodsEatenRef.current >= FOODS_PER_LEVEL) {
newScore--;
const newLevel = levelRef.current + 1;
levelRef.current = newLevel;
setLevel(newLevel);