Skip to content

five-on-it / packages/sim/src/sewers

packages/sim/src/sewers ​

The sewers (GAME_DESIGN §12, "Escape kit & chaos"): the level's manholes (LevelData.manholes), linked under the street by their network. A character on foot standing on a cover goes down it with the interaction key (manholeAt offers it, enterSewer takes it); below, it is out of the world (its body disabled: nothing collides with it, no ray finds it, @foi/ai's police lose sight of it and its stars cool as unseen) until it comes up at another manhole of the same network: the number key of that manhole among sewerExits chooses it, the interaction key the first; the walk takes as long as the way between them at SEWER.speed, at least SEWER.minSeconds (sewerStep). The state is Character.sewer (the manhole it went down, plus one), Character.sewerTo (the one it comes up at, plus one, once on its way) and Character.sewerTicks (the walk left), hashed with the rest; the snapshots carry it as the sewer act, and the clients draw the cover's fade and the exits to choose.

Variables ​

Functions ​