Skip to content

five-on-it / packages/ai/src/police-boats

packages/ai/src/police-boats ​

The police boats (C9, R15 "by water", GAME_DESIGN §12): below seven stars the water is an escape (no boat comes; the units on land come to the shore and hold there, as every chaser does: nobody plans a path through deep water); from seven stars a player on the water (at the wheel of a boat, or swimming) gets the police boats their stars ask for (police-ladder.ts), out on the same water, BOATS.spawnFar from them as near as the water allows, coming at them. A boat is the police boat (@foi/sim's police_boat: a light bar, a siren, a small water jet on its bow) with a helm and an operator, police officers that are no NPCs: the helm steers straight for the player over the water (kept off the shore), slowing as it nears and holding beside them, the siren wailing; the operator turns the bow jet on them within its reach (it knocks a swimmer down, shoves a boat; each burst hisses first). Back on land for a while, or the stars below seven, the boats are taken away. A boat whose crew is shot is left on the water, another sent after a while. Deterministic: the boats in the order they were sent.

Interfaces ​

Variables ​

Functions ​