From b7834de6d167fffb69ce1f4391c543834331a3c0 Mon Sep 17 00:00:00 2001 From: nocode Date: Tue, 26 May 2026 09:26:06 +0200 Subject: [PATCH] fix(hell-bullet): adjust zone progression difficulty and fix end screen zone display logic --- public/scripts/hell-bullet.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);