logo

Babylon.js Market

By Lawrence

5 minutes

Catching up?

Dropping in at this lesson? One command reinstalls the library components the build uses so far and writes the scene as it stood at the end of the previous lesson to public/scenes/SpaceshooterFlight-lesson-8/scene.json:

bjs download scene SpaceshooterFlight-lesson-8 --all

The scene you are caught up to at the start of this lesson, rendered from the full asset download.

Copy that scene.json over your src/scenes/spaceshooter.json and you are caught up to the start of this lesson.

Every rule of this game now works. A kill still looks like a bug: the fighter you have been chasing for twenty seconds stops existing between one frame and the next, and the only way to be sure you got it is to check a number.

The information was never missing. destroyShip has emitted spaceshooter.explosion since Course 2, the launcher has emitted spaceshooter.missile.fired, the missile has emitted spaceshooter.missile.exploded — three events, carrying exact world positions, into a bus with nobody on the other end. This lesson adds the other end.

        "SpaceShooterFX": {}

Continue reading

Unlock the Full Course

Every lesson, the runnable examples, and the finished build — yours to keep.

$9one-time

Was this page helpful?

We read every note — tell us what's working and what isn't.

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search