fix(hell-bullet): adjust zone progression difficulty and fix end screen zone display logic

This commit is contained in:
nocode committed 2026-05-26 09:26:06 +02:00
1 parent e44d11132a
commit b7834de6d1
1 file changed
+3 -2
+3 -2
View File
@@ -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);