diff --git a/js/main.js b/js/main.js index 87003e8..fe54a35 100644 --- a/js/main.js +++ b/js/main.js @@ -3,6 +3,7 @@ var showingHelp = false; $(document).ready(function(){ scaleCanvas(); $('#startBtn').on('touchstart mousedown', function(){ + gameState = 1; setTimeout(function(){ document.body.addEventListener('mousedown', function(e) { handleClickTap(e.clientX); @@ -140,6 +141,7 @@ var gameState; setStartScreen(); function init() { + console.log('o'); $('#pauseBtn').hide(); $('#startBtn').hide(); var saveState = localStorage.getItem("saveState") || "{}"; @@ -183,7 +185,7 @@ function init() { for(i=0; i