1681-engine / index / FootstepOptions
Interface: FootstepOptions ​
Defined in: src/audio/Footsteps.ts:9
Properties ​
fallback ​
ts
fallback: string;Defined in: src/audio/Footsteps.ts:13
The surface of anywhere surfaceAt does not name.
gain? ​
ts
optional gain?: number;Defined in: src/audio/Footsteps.ts:15
Weight of a step against other sounds (default 0.5).
range? ​
ts
optional range?: number;Defined in: src/audio/Footsteps.ts:17
Beyond this (world px) nobody else's steps are heard (default 200).
sounds ​
ts
sounds: Record<string, SurfaceSounds>;Defined in: src/audio/Footsteps.ts:11
Per surface name ('grass', 'stone', 'wood'…), the sounds a foot makes on it.