Tower
CrashTower.vueBest cash out 0.00×
- Recent rounds show here
Ready
1.00×
Start a round
Install
Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
v-model:autoCashOut?number | nullMultiplier to cash out at automatically (controlled), or null for manual play. Applies from the next round.
—defaultAutoCashOut?number | nullInitial auto cash-out when uncontrolled. Default null (off).
—getCrashPoint?() => number | Promise<number>Decides each round's crash point, called once when the round starts. Return a number, or a Promise for one (a server round): the main button shows Starting… until it settles, and a rejection returns to Start. Ignored when `crashAt` is passed.
—crashAt?CrashReveal | nullLive rounds (controlled), for a server that keeps the crash point secret until it happens: the round `start` was given and its crash point once revealed, or null.
—@start?(round: number) => voidCalled when the player starts a round, before its crash point is known, with the round's number (unique on the page).
—@cash-out?(multiplier: number) => voidCalled when the player cashes out, by hand or automatically. In a live round it waits until the crash point is revealed, so it only fires for a cash out that stands.
—@crash?(point: number, payout: number | null) => voidCalled when the round crashes, with the cash-out multiplier or null if the player was still in.
—v-model:sound?booleanPlay synthesized sounds (controlled).
undefineddefaultSound?booleanInitial sound state when uncontrolled. Default false.
—aria-label?stringAccessible name for the game. Default "Crash".
—labels?Partial<CrashMessages>Override built-in text for this instance.
—class?string—@auto-cash-out-change?(value: number | null) => void—@sound-change?(value: boolean) => void—Updated