diff --git a/js/Text.js b/js/Text.js index 3607a60..11206d9 100644 --- a/js/Text.js +++ b/js/Text.js @@ -9,7 +9,7 @@ function Text(x,y,text,font,color,incrementFunction){ this.draw = function(){ if (this.alive>0) { ctx.globalAlpha = this.opacity; - renderText((this.x + gdx), (this.y + gdy),40,this.color,this.text); + renderText((this.x + gdx), (this.y + gdy),50,this.color,this.text); ctx.globalAlpha =1; incrementFunction(this); return true; diff --git a/js/main.js b/js/main.js index d8a0dab..594a380 100644 --- a/js/main.js +++ b/js/main.js @@ -10,13 +10,9 @@ $(document).ready(function(){ } setTimeout(function(){ - - document.body.addEventListener('touchstart', function(e) { - handleClickTap(e.changedTouches[0].clientX); - }, false); - //document.body.addEventListener('mousedown', function(e) { - //handleClickTap(e.clientX); - //}, false); + document.body.addEventListener('touchstart', function(e) { + handleClickTap(e.changedTouches[0].clientX); + }, false); }, 1); }); }); @@ -178,8 +174,8 @@ function init(b) { op = 0; scoreOpacity = 0; gameState = 1; - $("#restartBtn").show(); - $("#pauseBtn").show(); + $("#restartBtn").show(); + $("#pauseBtn").show(); if(saveState.hex !== undefined) gameState = 1; scaleCanvas(); @@ -404,9 +400,9 @@ window.onblur = function (e) { } }; function showHelp(){ - if(gameState =1){ - pause(); - } + if(gameState =1){ + pause(); + } if(document.getElementById("helpScreen").style.display=="none" || document.getElementById("helpScreen").style.display === ""){ document.getElementById("helpScreen").style.display = "block"; }