Fixed Game over redirect
This commit is contained in:
		
							parent
							
								
									39febec573
								
							
						
					
					
						commit
						38cf1174cb
					
				@ -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