Log inGet started
World

Campaign Trail: Title Screen, Level Select, Story Beats and Results for Level-Based Games

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.