Fixed Game over redirect
This commit is contained in:
parent
6839746b3c
commit
ab94dee93f
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user