1681-engine / index / WeatherLook
Interface: WeatherLook ​
Defined in: src/ambient/WeatherLayer.ts:16
Properties ​
keys ​
keys: readonly string[];Defined in: src/ambient/WeatherLayer.ts:21
Texture keys, handed out in turn (repeat a key to make it commoner).
max ​
max: number;Defined in: src/ambient/WeatherLayer.ts:19
Particles at full strength; fewer show as the weather thins. Keep it in the low hundreds on a phone.
motion ​
motion: WeatherMotion;Defined in: src/ambient/WeatherLayer.ts:17
splash? ​
optional splash?: readonly [string, string];Defined in: src/ambient/WeatherLayer.ts:23
fall only: the splash's two frames. Without them a drop simply vanishes where it lands.
sway? ​
optional sway?: number;Defined in: src/ambient/WeatherLayer.ts:28
flake only: how far (px) a flake sways either side as it falls (default 4).
tint? ​
optional tint?: number;Defined in: src/ambient/WeatherLayer.ts:30
A screen-wide tint the kind lays over everything (fog is mostly tint), at tintAlpha × strength.
tintAlpha? ​
optional tintAlpha?: number;Defined in: src/ambient/WeatherLayer.ts:31
vx? ​
optional vx?: readonly [number, number];Defined in: src/ambient/WeatherLayer.ts:25
World px a second, [lo, hi] each (defaults suit each motion).
vy? ​
optional vy?: readonly [number, number];Defined in: src/ambient/WeatherLayer.ts:26