A modern, decentralized casino game built on Solana blockchain featuring an exciting rocket crash game with real-time multiplayer functionality.
FutureSea.fun is a Web3 casino game where players bet on a rocket that continuously multiplies their stake. The goal is to cash out before the rocket crashes! The longer you stay in, the higher your potential winnings, but wait too long and you lose everything.
- Rocket Launch: Players join a game and place their bets
- Countdown: 60-second countdown starts when 2+ players join
- Rocket Flight: The rocket launches and starts multiplying everyone's bets
- Cash Out: Players must decide when to cash out before the rocket crashes
- Winner: The last player to cash out before the crash wins the round
- ๐ Web3 Authentication - Secure wallet-based login using Solana
- ๐ฐ Real-time Betting - Place bets with SOL tokens
- ๐ฎ Live Multiplayer - Play with other users in real-time
- ๐ฌ Live Chat - Communicate with other players during games
- ๐ Game Statistics - Track your performance and history
- ๐จ Modern UI - Beautiful, responsive design with animations
- ๐ฑ Mobile Responsive - Play on desktop or mobile devices
- Frontend: Next.js 15, React 19, TypeScript
- Styling: Tailwind CSS, Framer Motion
- Blockchain: Solana Web3.js, Wallet Adapter
- Authentication: Privy.io
- Game Engine: Phaser.js
- Real-time: WebSocket connections
- State Management: React Context, TanStack Query
- Node.js 18+
- Yarn or npm
- Solana wallet (Phantom, Solflare, etc.)
- Solana devnet SOL for testing
-
Clone the repository
git clone <repository-url> cd futuresea.fun-frontend
-
Install dependencies
yarn install # or npm install
-
Set up environment variables
cp env.example .env.local
Edit
.env.local
with your configuration:# API Configuration NEXT_PUBLIC_API_URL=http://localhost:3001/api # App Configuration NEXT_PUBLIC_APP_NAME=FutureSea NEXT_PUBLIC_APP_DESCRIPTION=Casino web3 game on solana # Solana Configuration NEXT_PUBLIC_SOLANA_NETWORK=devnet NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com
-
Start the development server
yarn dev # or npm run dev
-
Open your browser Navigate to http://localhost:3000
- Click "Connect Wallet" in the top right
- Choose your Solana wallet (Phantom, Solflare, etc.)
- Approve the connection
- Customize your avatar and username
- Set your email preferences
- View your game statistics
- Enter your bet amount in SOL
- Click "Join Game" to enter the round
- Wait for other players to join
- 60-second countdown starts when 2+ players join
- More players can join during this time
- Watch the countdown timer
- The rocket launches and starts multiplying bets
- Watch the multiplier increase in real-time
- Decide when to cash out!
- Click "Cash Out" when you want to secure your winnings
- The longer you wait, the higher your potential payout
- But be careful - wait too long and the rocket crashes!
- Last player to cash out before crash wins
- Winners are highlighted and celebrated
- View your winnings and game history
src/
โโโ app/ # Next.js app router pages
โ โโโ api/ # API routes
โ โโโ coinflip/ # Coinflip game page
โ โโโ crash/ # Crash game page
โ โโโ profile/ # User profile pages
โโโ components/ # Reusable React components
โ โโโ auth/ # Authentication components
โ โโโ layout/ # Layout components
โ โโโ modal/ # Modal components
โ โโโ ...
โโโ contexts/ # React context providers
โโโ hooks/ # Custom React hooks
โโโ phaser/ # Phaser.js game assets
โโโ providers/ # Context providers
โโโ types/ # TypeScript type definitions
โโโ utils/ # Utility functions
yarn dev
- Start development serveryarn build
- Build for productionyarn start
- Start production serveryarn lint
- Run ESLint
Variable | Description | Default |
---|---|---|
NEXT_PUBLIC_API_URL |
Backend API URL | http://localhost:3001/api |
NEXT_PUBLIC_APP_NAME |
Application name | FutureSea |
NEXT_PUBLIC_APP_DESCRIPTION |
App description | Casino web3 game on solana |
NEXT_PUBLIC_SOLANA_NETWORK |
Solana network | devnet |
NEXT_PUBLIC_SOLANA_RPC_URL |
Solana RPC endpoint | https://api.devnet.solana.com |
- Game Panel - Main game controls and betting interface
- Joined Players - List of players in current game
- Player's Recent Games - Your game history
- Recent Crash Games - Global game history
- Real-time Chat - Live chat with other players
- Wallet Balance - Your current SOL balance
- Wallet Authentication - Secure Web3 wallet integration
- Transaction Signing - All bets require wallet approval
- Real-time Validation - Server-side game validation
- Anti-cheat Protection - Fair play enforcement
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This is a gambling game. Please gamble responsibly and only bet what you can afford to lose. The game is for entertainment purposes only.
- E-Mail: [email protected]
- Telegram: @bettyjk_0915
- Discord: Join our community for support