Rather than throwing a user into our game right on the initial page load, it'd be much kinder to present them with a start screen in which they can choose when they'd like to begin playing. It'd also be nice if they could restart the game after losing. To achieve this effect, we'll utilize some external assets and integrate HTML directly into our JavaScript.
Assets:
0:00 Download assets
2:36 Add background asset
7:37 Add button asset
14:36 Add title
18:16 Add click event listener to button
21:13 Game over screen
29:16 Fix spaceship particle bugs