TumbleConfig
pixi-reels / index / TumbleConfig
Interface: TumbleConfig
Defined in: cascade/TumbleConfig.ts:110
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
dropIn? | TumbleDropInConfig | Drop-in animation (new symbols arriving after setResult or in refill). | cascade/TumbleConfig.ts:114 |
fall? | TumbleFallConfig | Fall-out animation (existing symbols leaving on spin() click). | cascade/TumbleConfig.ts:112 |
gravity? | Direction | "auto" | Which way symbols settle along the strip. Default 'auto'. - 'auto' (default). follow each reel’s own travel direction, so a reel built with .direction('reverse') cascades upward (or leftward, on a horizontal set) without any further configuration. This is what you want almost always. - 'forward'. always settle toward the larger main coordinate (down / right), whichever way the reel spins. - 'reverse'. always settle toward the smaller main coordinate (up / left). Gravity is independent of direction so a reel can spin one way and drop the other, but the default ties them together because that is the physically coherent case. Orientation never enters into it: gravity picks an END of the strip, and the axis decides which screen edge that is. Whichever edge gravity exits by is also the edge the server must pack survivors against in the grids it sends — the engine animates the result, it does not reorder it. | cascade/TumbleConfig.ts:136 |