hacky fix to drop blocks on gameover

This commit is contained in:
Michael Yang 2014-05-24 16:01:24 -04:00
parent 6c073cacdb
commit 598acaae87

View file

@ -251,11 +251,11 @@ function animLoop() {
}
else if (gameState == 2) { // fix so that it clears blocks then checks for game over
// if (checkGameOver()) {
if (MainClock.angle != MainClock.targetAngle) {
// if (MainClock.angle != MainClock.targetAngle) {
requestAnimFrame(animLoop);
update();
update(); // score will keep incrementing at gameover
render();
}
// }
// checkGameOver();
showModal('Game over: ' + score + ' pts!', 'Press enter to restart!');
highscores = localStorage.getItem('highscores').split(',').map(Number);