diff --git a/index.html b/index.html index e61e4cd..24a5f11 100644 --- a/index.html +++ b/index.html @@ -600,9 +600,9 @@ linesClearedTotal += rowCount; - // Level Up Logic: Every 8 rows - if (linesClearedTotal % 5 === 0) { - levelUp(); + // Level Up Logic: Every 5 rows + while (linesClearedTotal >= level * 5) { + levelUp(); // increments `level` and updates UI } } }