Fixed Game over redirect

This commit is contained in:
Joshua Shoemaker 2016-11-23 12:28:31 -06:00
parent 39febec573
commit 38cf1174cb

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)
} }
} }