Fixed Game over redirect

This commit is contained in:
ysandler 2016-11-23 12:28:31 -06:00 committed by Joshua Shoemaker
parent 6839746b3c
commit ab94dee93f

View File

@ -17,11 +17,11 @@ function gameLoop() {
function play() { function play() {
if(terminalsHacked === 4){ if(terminalsHacked === 4){
window.location="https://github.com/joshuashoemaker/game-off-2016/gameover.html" window.location="https://joshuashoemaker.github.io/game-off-2016/gameover.html"
} }
if(!player.alive()){ if(!player.alive()){
setTimeout(function(){ setTimeout(function(){
window.location="https://github.com/joshuashoemaker/game-off-2016/gameover.html" window.location="https://joshuashoemaker.github.io/game-off-2016/gameover.html"
}, 1500) }, 1500)
} }
} }