diff --git a/public/scripts/hell-bullet.js b/public/scripts/hell-bullet.js index 7a1e81f..05f3a9e 100644 --- a/public/scripts/hell-bullet.js +++ b/public/scripts/hell-bullet.js @@ -326,7 +326,7 @@ function initZone() { enemyBullets = []; powerups = []; zoneKills = 0; - zoneKillsRequired = 50 + zoneIndex * 3; + zoneKillsRequired = 30 + zoneIndex * 1.5; bossSpawned = false; bossDefeated = false; transitionTimer = 90; @@ -526,7 +526,8 @@ function drawEndScreen(title, color) { ctx.fillStyle = "#fff"; ctx.font = "20px Arial"; ctx.fillText("Score final : " + score, W / 2, H / 2 + 10); - ctx.fillText("Zone atteinte : " + (zoneIndex + 1) + " / 5", W / 2, H / 2 + 40); + if (state === STATE.WIN) ctx.fillText("Zone atteinte : " + (zoneIndex) + " / 5", W / 2, H / 2 + 40); + else ctx.fillText("Zone atteinte : " + (zoneIndex + 1) + " / 5", W / 2, H / 2 + 40); ctx.font = "bold 22px Arial"; ctx.fillStyle = "#0ff"; ctx.fillText("R, CLIC ou TAP pour rejouer", W / 2, H / 2 + 95);