window on blur no longer unpauses
This commit is contained in:
parent
a63415c1d8
commit
244f6f9c49
2 changed files with 2 additions and 1 deletions
|
@ -319,7 +319,9 @@ function checkGameOver() {
|
|||
}
|
||||
|
||||
window.onblur = function (e) {
|
||||
if(gameState==1){
|
||||
pause();
|
||||
}
|
||||
};
|
||||
function showHelp(){
|
||||
pause(false,true);
|
||||
|
|
|
@ -22,7 +22,6 @@ function renderText(x, y, fontSize, color, text) {
|
|||
ctx.font = fontSize + 'px/0 Roboto';
|
||||
ctx.textAlign = 'center';
|
||||
ctx.fillStyle = color;
|
||||
|
||||
ctx.fillText(text, x, y + (fontSize / 4) + 3.5);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue