Log inGet started
Package

director.module

This package holds more than this page lists. See all of its files in its world.

README.md

director

The campaign's flow for the local player: title -> level select -> story beat -> level -> results (+ the after-level beat) -> Next / Retry / map, and after the last level the finale hook, the finale words and the credits. Handles the per-player pause (Escape / P), the map's keys (arrows / WASD, Enter, Esc) and clicks, the results bar ("map (M)" or "the ending (M)" under the runner's results card), saving progress and the unlock toast, and keeps the right music piece playing. It draws nothing itself: it keeps the trees of its screens in Director.wanted() and rebuilds them only when the focus, the progress or the screen size changes; campaignKit.CampaignHost registers them. Games use it through campaignKit.api.