Here we'll cover how to transition into a second level once you complete the first one. We're going to utilize completely new scenery from an Illustrator file I created, and import it into our game using a similar technique to how we imported audio files within the last episode.
The step by step process for this task looks like this:
Layout new level in Illustrator
Duplicate init function
Import new assets in separate file
Create new level based on new assets
Refactor init to restart correctly
Add setTimeout
Add onto current level
Set gravity within init functions