Skip to content

1681-engine / index / WeatherMotion

Type Alias: WeatherMotion ​

ts
type WeatherMotion = "fall" | "flake" | "bank";

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

How one kind of weather moves:

  • fall: streaks falling at a slant onto a ground line somewhere in view, half of them leaving a two-frame splash (rain);
  • flake: bits drifting down and swaying as they fall, each on its own phase (snow, ash, petals);
  • bank: a few wide sprites drifting slowly sideways, laid over the bodies (fog, mist, smoke).

Released under the MIT License.