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/WingmanFlight2-lesson-4/scene.json:
Copy that scene.json over your src/scenes/wingman.json and you are caught up to the start of this lesson.
For three lessons, the kilrathi has just sat there. You fly circles around it and shoot off its wings, and it never fights back. A real dogfight needs the other side to fight too. The enemy ship should fly a real pattern, point its nose at you, and shoot back. The next lessons also need to know who is hostile. Matching a "enemy" string is fragile and easy to break. Instead, the game asks for a component it can query type-safely.
Continue reading
Unlock the Full Course
Every lesson, the runnable examples, and the finished build — yours to keep.