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 2 years 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
M
MILLAREMARK420 posted 4 days ago
0
webuxmotion posted 4 months ago
0
N
Nishil1323 posted 7 months ago
0
C
CucumberBasket posted 5 months ago
0
p
pedrolbpcruz posted 2 years ago
0
chris posted 2 years ago
0
webuxmotion posted 4 months ago
0
XxCFxX posted 2 years ago
0
chris posted 2 years ago
0
XxCFxX posted 2 years ago
0
XxCFxX posted 2 years ago
0
XxCFxX posted 2 years ago
0
N
Nishil1323 posted 7 months ago
0

Providing the lift to launch your development career

© 2023 Chris Courses. All rights reserved.