Skip to content

Commit a58f9a7

Browse files
committed
Fixed background not updating during countdown
1 parent 19a6ef3 commit a58f9a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scenes/GameScene.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ export default class GameScene extends THREE.Scene {
357357
if (!dt)
358358
return;
359359

360+
// scene decorations
361+
if (this.satellites)
362+
for (let satellite of this.satellites)
363+
satellite.update(dt);
364+
360365
// wait 3 seconds for fade in
361366
// wait 3 seconds for countdown
362367
this.countdown += dt;
@@ -375,10 +380,5 @@ export default class GameScene extends THREE.Scene {
375380

376381
for (let cpu of this.CPUs)
377382
cpu.update(this.track, dt);
378-
379-
// scene decorations
380-
if (this.satellites)
381-
for (let satellite of this.satellites)
382-
satellite.update(dt);
383383
}
384384
}

0 commit comments

Comments
 (0)