fix(hell-bullet): adjust zone progression difficulty and fix end screen zone display logic
This commit is contained in:
1 file changed
+3
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user