There's a small bug you may have noticed in which the platforms of our game move the very beginning of the level whenever the browser window is refreshed. This occurs since our init()
code is running before all of our game assets are loaded. Here I'll show you how to fix this using the power of promises and async / await.
now fixed