game.js
// If the player has died, show them the number of waves they have cleared
If the player has died, show them the number of waves they have cleared
If the player has died show them the number of waves they have cleared
function gameOver() {
	gameScene.visible = false;
	battleActions.visible = false;
	gameOverScene.visible = true;
	gameOverText.setText(player.name + " has died! Game Over!\nWaves cleared: " + (wave - 1));
}
function gameOver ( ) { gameScene . visible = false ; battleActions . visible = false ; gameOverScene . visible = true ; gameOverText . setText ( player . name + " has died! Game Over!\nWaves cleared: " + ( wave - 1 ) ) ; }
If the player has died, show them the number of waves they have cleared
If the player has died show them the number of waves they have cleared