Video Thumbnail

Sign up for a plan to instantly unlock all premium lessons.

UNLOCK LESSON

Premium Features

Download Video

On-load asset position bug fix

Published a year ago

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.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
p
pedrolbpcruz posted 10 months ago
0
chris posted 10 months ago
0
XxCFxX posted 10 months ago
0
chris posted 10 months ago
0
XxCFxX posted 10 months ago
0
XxCFxX posted 10 months ago
0
XxCFxX posted 10 months ago
0

Providing the lift to launch your development career

© 2022 Chris Courses. All rights reserved.