can't restart game multiple times in a row bc of timeOut
This commit is contained in:
parent
088b768a02
commit
e4814ec5dc
1 changed files with 4 additions and 2 deletions
|
@ -125,13 +125,15 @@ function handleClickTap(x,y) {
|
|||
}
|
||||
|
||||
if (gameState == 2 && canRestart) {
|
||||
setTimeout(function(){
|
||||
setTimeout(function() {
|
||||
if(tweetblock) {
|
||||
tweetblock = false;
|
||||
return;
|
||||
}
|
||||
else{
|
||||
init(1);
|
||||
if (gameState != 1) {
|
||||
init(1);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}, 1000);
|
||||
|
|
Loading…
Reference in a new issue