Skip to content

1681-engine / index / FloatOptions

Interface: FloatOptions ​

Defined in: src/fx/FloatingText.ts:34

How float moves a label: pops from pop× to 1, holds, then rises rise px while fading out.

Properties ​

driftX? ​

ts
optional driftX?: number;

Defined in: src/fx/FloatingText.ts:37

Sideways drift over the fade, px (pass a random one for a crowd of numbers that do not stack).


fadeMs? ​

ts
optional fadeMs?: number;

Defined in: src/fx/FloatingText.ts:41


holdMs? ​

ts
optional holdMs?: number;

Defined in: src/fx/FloatingText.ts:40


pop? ​

ts
optional pop?: number;

Defined in: src/fx/FloatingText.ts:38


popMs? ​

ts
optional popMs?: number;

Defined in: src/fx/FloatingText.ts:39


rise? ​

ts
optional rise?: number;

Defined in: src/fx/FloatingText.ts:35

Released under the MIT License.