removed code

This commit is contained in:
lengstrom 2015-05-24 12:36:09 -04:00
parent 74b20966b3
commit e1ec4c98c8

View file

@ -79,7 +79,7 @@ function addKeyListeners() {
$("#pauseBtn").on('touchstart mousedown', function() {
if (gameState != 1 && gameState != -1) {
if (gameState != 1 &&z gameState != -1) {
return;
}
@ -165,51 +165,20 @@ function handleClickTap(x,y) {
[halfRadius,triHeight]];
Vertexes = Vertexes.map(function(coord){
return [coord[0] + trueCanvas.width/2, coord[1] + trueCanvas.height/2]});
if (gameState == 1 && inside([x,y],Vertexes)){
toggleRush();
return;
}
if (gameState == 2 && canRestart) {
setTimeout(function() {
if(tweetblock) {
tweetblock = false;
return;
}
else{
if (gameState != 1) {
init(1);
}
}
return;
}, 1000);
return;
}
if (!MainHex || gameState === 0 || gameState==-1) {
return;
}
if (x < window.innerWidth/2) {
if (gameState != 1 && gameState != -2 && gameState != -1 ){
if (importing === 0) {
resumeGame();
}
else {
init(1);
}
}
MainHex.rotate(1);
}
if (x > window.innerWidth/2) {
if (gameState != 1 && gameState != -2 && gameState != -1) {
if (importing === 0) {
resumeGame();
}
else {
init(1);
}
}
MainHex.rotate(-1);
}
}