1Discovery โ the 4 views and the 2 personas
On every phone exactly one view is shown at a time, and the journey is always the same.
Four canonical views follow one another:
- Home โ type the room code and a handle, then join.
- Lobby โ set the match up (page 1) and pick your side (page 2).
- Command โ aim and fire, round after round.
- Cracktro โ the end screen, with โReplayโ and โQuitโ.
Two roles share the setup. The Architect (first to connect, or the loser on a rematch) configures the battlefield on page 1 and triggers the start by validating it. The Rival has no access to page 1, but can rush to page 2 and claim a side โ fastest wins. The match starts once page 1 is validated, a side is claimed, and both players are present.
When does the match start?
2Intermediate โ the state machine
The displayed screen follows from a single current state. Walk the token through the machine: from each state, only the allowed transitions are offered. You find the cycle Lobby โ Command โ Cracktro, then โReplayโ (back to the lobby) or โQuitโ (back home).
State-machine walker
3Expert โ reconnection & scenery continuity
On first connect, every device (player and TV) negotiates a unique token. If it loses the network, the server holds its place for 10 s: by reconnecting in time with its token, it reclaims exactly its seat. Beyond that the seat is freed โ and if it is the TV (the room's anchor) that vanishes, the whole match is closed.
10 s grace window
Another polished detail: the transition between rounds. The camera slides horizontally toward the next round, in parallax (the far scenery slides slower). The trap: when the camera resets, the scenery โjumpsโ back. The fix is to bake the shift into the scenery so it keeps flowing seamlessly.