Dev Design Library

Crash

A crash game: a paper plane flies the multiplier up a curve until it crashes at a random point. Cash out before it does. After a cash out the flight keeps going, so the player sees what they left on the table.

Crash preview
Library
beUI
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add @beui/crash
Files
  • components/motion/crash/crash-balloon.tsx
  • components/motion/crash/crash-parts.tsx
  • components/motion/crash/crash-tower.tsx
  • components/motion/crash/messages.ts
  • components/motion/crash/use-crash-game.ts
  • components/motion/crash.tsx
  • lib/ease.ts
  • lib/utils.ts
Source
https://github.com/starc007/ui-components

Categories

More from beUI