Skip to content

1681-engine / index / BirdsOptions

Interface: BirdsOptions ​

Defined in: src/ambient/life/Birds.ts:6

Properties ​

depth? ​

ts
optional depth?: number;

Defined in: src/ambient/life/Birds.ts:18

Depth of the birds (default 950_000: over every prop and body, under the names).


everyS ​

ts
everyS: readonly [number, number];

Defined in: src/ambient/life/Birds.ts:10

Seconds between flocks, [least, most].


firstMs? ​

ts
optional firstMs?: readonly [number, number];

Defined in: src/ambient/life/Birds.ts:24

The first flock comes this many ms after the first update, [least, most] (default [3000, 9000]).


flock ​

ts
flock: readonly [number, number];

Defined in: src/ambient/life/Birds.ts:8

Birds in a flock, [least, most]; never more than maxFlock.


frames ​

ts
frames: readonly [string, string];

Defined in: src/ambient/life/Birds.ts:12

The two frames, seen from above: wings raised (a V), then the downstroke.


maxFlock? ​

ts
optional maxFlock?: number;

Defined in: src/ambient/life/Birds.ts:16

The pool's size (default 6).


maxNight? ​

ts
optional maxNight?: number;

Defined in: src/ambient/life/Birds.ts:22

Past this night no flock sets off (default 0.5).


random? ​

ts
optional random?: () => number;

Defined in: src/ambient/life/Birds.ts:26

Returns ​

number


shadow? ​

ts
optional shadow?: string;

Defined in: src/ambient/life/Birds.ts:14

A small shadow on the ground far below each bird: it is what tells the eye how high they are.


shadowDepth? ​

ts
optional shadowDepth?: number;

Defined in: src/ambient/life/Birds.ts:20

Depth of their shadows (default -999_980: on the ground, under the bodies).


snap? ​

ts
optional snap?: boolean;

Defined in: src/ambient/life/Birds.ts:25

Released under the MIT License.