Skip to content

1681-engine / index / WeatherLook

Interface: WeatherLook ​

Defined in: src/ambient/WeatherLayer.ts:16

Properties ​

keys ​

ts
keys: readonly string[];

Defined in: src/ambient/WeatherLayer.ts:21

Texture keys, handed out in turn (repeat a key to make it commoner).


max ​

ts
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 ​

ts
motion: WeatherMotion;

Defined in: src/ambient/WeatherLayer.ts:17


splash? ​

ts
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? ​

ts
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? ​

ts
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? ​

ts
optional tintAlpha?: number;

Defined in: src/ambient/WeatherLayer.ts:31


vx? ​

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

Defined in: src/ambient/WeatherLayer.ts:25

World px a second, [lo, hi] each (defaults suit each motion).


vy? ​

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

Defined in: src/ambient/WeatherLayer.ts:26

Released under the MIT License.