Fixed Game over redirect
This commit is contained in:
parent
6839746b3c
commit
ab94dee93f
@ -17,11 +17,11 @@ function gameLoop() {
|
||||
|
||||
function play() {
|
||||
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()){
|
||||
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)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user