This commit is contained in:
hexahigh 2023-04-08 01:42:23 +02:00
parent 7380f8eb44
commit 1d2d0222a1

View File

@ -160,18 +160,6 @@ function geronimo() {
function Game() {
this.cheatHealth = function () {
this.score.set(0);
this.score.refresh(".score");
pacman.lives = 100;
this.refreshLevel(".level");
this.pause = false;
this.gameOver = false;
};
this.cheatHealth();
this.timer = new Timer(); // TODO: implememnt properly, and submit with highscore
this.refreshRate = 33; // speed of the game, will increase in higher levels
@ -1655,6 +1643,17 @@ function geronimo() {
) game.pauseResume();
break;
}
this.cheatHealth = function () {
this.score.set(0);
this.score.refresh(".score");
pacman.lives = 100;
this.refreshLevel(".level");
this.pause = false;
this.gameOver = false;
};
this.cheatHealth();
}
}