mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
update
This commit is contained in:
parent
7380f8eb44
commit
1d2d0222a1
@ -124,9 +124,9 @@ function geronimo() {
|
|||||||
logger.disableLogger = function disableLogger() {
|
logger.disableLogger = function disableLogger() {
|
||||||
console.log('console.log disabled');
|
console.log('console.log disabled');
|
||||||
originalConsoleLog = console.log;
|
originalConsoleLog = console.log;
|
||||||
window['console']['log'] = function () {};
|
window['console']['log'] = function () { };
|
||||||
originalConsoleDebug = console.debug;
|
originalConsoleDebug = console.debug;
|
||||||
window['console']['debug'] = function () {};
|
window['console']['debug'] = function () { };
|
||||||
};
|
};
|
||||||
|
|
||||||
return logger;
|
return logger;
|
||||||
@ -160,18 +160,6 @@ function geronimo() {
|
|||||||
function Game() {
|
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.timer = new Timer(); // TODO: implememnt properly, and submit with highscore
|
||||||
this.refreshRate = 33; // speed of the game, will increase in higher levels
|
this.refreshRate = 33; // speed of the game, will increase in higher levels
|
||||||
|
|
||||||
@ -648,7 +636,7 @@ function geronimo() {
|
|||||||
Sound.play = function (sound) {
|
Sound.play = function (sound) {
|
||||||
if (game.soundfx == 1) {
|
if (game.soundfx == 1) {
|
||||||
var audio = document.getElementById(sound);
|
var audio = document.getElementById(sound);
|
||||||
(audio !== null) ? audio.play(): console.log(sound + " not found");
|
(audio !== null) ? audio.play() : console.log(sound + " not found");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1655,6 +1643,17 @@ function geronimo() {
|
|||||||
) game.pauseResume();
|
) game.pauseResume();
|
||||||
break;
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user