five-on-it / apps/client/src/ui/banner-view
apps/client/src/ui/banner-view
The big word of an event, mid-screen: the page lost its server, the player died, a mission failed (and why) or was completed, the level was reset. Pure: the game loop works it out from what it knows as often as it publishes the overlay, and Banner.tsx draws it. A lost server comes first (nothing else is true any more), then dying; a mission's end shows while its tracker does (the few seconds before the next mission, or the retry, starts); a level reset for RESET_BANNER_MS. Dying, or a failure, says whether the mission goes back to its last checkpoint or starts over.