diff options
Diffstat (limited to 'html/tower/js/game.js')
-rw-r--r-- | html/tower/js/game.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/tower/js/game.js b/html/tower/js/game.js index 80b10d4..bcbbbb9 100644 --- a/html/tower/js/game.js +++ b/html/tower/js/game.js @@ -358,10 +358,10 @@ function startNextLevel() { generatePath(gameState.grid).then(path => { gameState.path = path; - // Increase number of enemies for each level + // Exponential enemy scaling const baseEnemies = 5; - const enemiesPerLevel = 3; - enemiesRemaining = baseEnemies + (gameState.level - 1) * enemiesPerLevel; + const scalingFactor = 1.5; // Each level increases by 50% + enemiesRemaining = Math.floor(baseEnemies * Math.pow(scalingFactor, gameState.level - 1)); // Re-enable tower palette document.querySelectorAll('.tower-option').forEach(option => { |