Workshop › Asteroids › Step 35 of 41
A game has many waves but only one start. The start-up lines at the bottom move into newGame(), so a new game can be
started again later with one call.
```js
function newGame() {
score = 0
lives = 3
wave = 1
bullets = []
resetShip()
spawnWave()
}
newGame()
```function shoot() { write newGame, followed by an empty line.score = 0 to resetShip()) with newGame().Skills: Game states, Functions
← Faster every wave Playing or over →