window on blur no longer unpauses

This commit is contained in:
Garrett Finucane 2014-05-30 21:23:32 -04:00
parent a63415c1d8
commit 244f6f9c49
2 changed files with 2 additions and 1 deletions

View file

@ -319,7 +319,9 @@ function checkGameOver() {
}
window.onblur = function (e) {
if(gameState==1){
pause();
}
};
function showHelp(){
pause(false,true);

View file

@ -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);
}