game.js
// pre-battle state, shows the wave counter, sets up enemies for the next wave, resets battle variables
pre-battle state, shows the wave counter, sets up enemies for the next wave, resets battle variables
pre - battle state shows the wave counter sets up enemies for the next wave resets battle variables
function preBattle() {
	titleScene.visible = false;
	gameScene.visible = true;
	preBattleText.visible = true;
	battleActions.visible = false;
	action = "";
	player.turn = true;
	if (waveCounter.text.split()[1] != wave) {
		waveCounter.setText("WAVE " + wave);
	}
	if (enemies.length == 0) {
		enemies = wavePopulation(wave);
	}
}
function preBattle ( ) { titleScene . visible = false ; gameScene . visible = true ; preBattleText . visible = true ; battleActions . visible = false ; action = "" ; player . turn = true ; if ( waveCounter . text . split ( ) [ 1 ] != wave ) { waveCounter . setText ( "WAVE " + wave ) ; } if ( enemies . length == 0 ) { enemies = wavePopulation ( wave ) ; } }
pre-battle state, shows the wave counter, sets up enemies for the next wave, resets battle variables
pre - battle state shows the wave counter sets up enemies for the next wave resets battle variables