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/WingmanFlight-lesson-8/scene.json:
Copy that scene.json over your src/scenes/wingman.json and you are caught up to the start of this lesson.
Course 2 started you with two enemy fighters. Kill them both and the sky goes quiet. Those two ships are the whole enemy list. They're placed by hand in the scene. Once they're gone, there is nothing left to fight. A real mission needs more enemies. It needs one wave ready when the level loads, and another wave that shows up when you fly deep into the track. But you can't spawn ships one new at a time during a fight. That makes too much work for the garbage collector. The enemies have to come from a pool instead. One more world-singleton director handles all three jobs.
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.