changed max HP

This commit is contained in:
Sam
2023-11-30 17:07:38 +01:00
parent 559621835f
commit 2b14931319

View File

@@ -10,7 +10,7 @@ let playerPosX = 500
let playerPosY = 300;
let playerSpeed = 3;
let booleanArray = window.booleanArray;
let lives = 2;
let lives = 1;
let bossPosX = 500;
let bossPosY = 100;
@@ -64,7 +64,7 @@ function life() {
text("Game Over", 500, 300);
}
if (key == ' ') {
lives = 2;
lives = 1;
time = 0;
bounceX = bossPosX;
bounceY = bossPosY;