Skip to content

five-on-it / packages/ai/src/crowd / CROWD

Variable: CROWD ​

const CROWD: object

Defined in: packages/ai/src/crowd.ts:92

The numbers of the crowd.

Type Declaration ​

despawn ​

readonly despawn: 160 = 160

Pedestrians farther than this from every player go (m).

dogBeside ​

readonly dogBeside: 0.8 = 0.8

A dog comes out this far from its walker, along the pavement (m)…

dogNear ​

readonly dogNear: 20 = 20

…and a walker taken off the street takes a dog off its lead with it when it is this near (m).

doorAway ​

readonly doorAway: 2700 = 2700

A door left by its shopkeeper stays empty this long (ticks): 45 s.

maxPeople ​

readonly maxPeople: 96 = 96

Pedestrians wanted at most.

minPart ​

readonly minPart: 6 = 6

Pavements in pieces smaller than this (nodes) get nobody.

spawnClear ​

readonly spawnClear: 3 = 3

Nobody else this near a new pedestrian (m).

spawnMax ​

readonly spawnMax: 120 = 120

…and at most (m).

spawnMin ​

readonly spawnMin: 30 = 30

New pedestrians appear this far from the nearest player at least… (m)

spawnTries ​

readonly spawnTries: 6 = 6

Spots tried per tick for a new pedestrian.

strayPer ​

readonly strayPer: 8 = 8

…one for every so many people the hour wants.

strays ​

readonly strays: 3 = 3

Stray dogs kept at most, where the level has pavements…