From 5b78a26de52e831d2924d7f488d82b6ad31f3bff Mon Sep 17 00:00:00 2001 From: Garrett Finucane Date: Fri, 22 Aug 2014 21:45:49 -0400 Subject: [PATCH] tweetblock working --- index.html | 2 +- js_v6/input.js | 11 ++++++++++- js_v6/main.js | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index bc9a7c1..a15c2d9 100644 --- a/index.html +++ b/index.html @@ -104,7 +104,7 @@
- +
diff --git a/js_v6/input.js b/js_v6/input.js index b14ce1c..9cdae97 100644 --- a/js_v6/input.js +++ b/js_v6/input.js @@ -125,7 +125,16 @@ function handleClickTap(x,y) { } if (gameState == 2 && canRestart) { - init(1); + setTimeout(function(){ + if(tweetblock) { + tweetblock = false; + return; + } + else{ + init(1); + } + return; + }, 1000); return; } diff --git a/js_v6/main.js b/js_v6/main.js index 858278e..eda80e2 100644 --- a/js_v6/main.js +++ b/js_v6/main.js @@ -99,6 +99,7 @@ function init(b) { prevScore = 0; spawnLane = 0; op = 0; + tweetblock=false; scoreOpacity = 0; gameState = 1; $("#restartBtn").hide();