A browser-based, OopSss.io-inspired multiplayer snake game integrated with blockchain for SocialFi (decentralized social features) and GameFi (play-to-earn) mechanics on U2U Solaris Mainnet.
A browser-based, OopSss.io-inspired multiplayer snake game integrated with blockchain for SocialFi (decentralized social features) and GameFi (play-to-earn) mechanics on U2U Solaris Mainnet.
Play Now: https://oopsss.vercel.app
Network: U2U Solaris Mainnet (Chain ID: 39)
Status: ✅ Live and Playable
Contract Address: 0x5B60CF7edCCc82350C223eF591a4C951d64e74EF
Token Symbol: $ST (OopSss Token)
Network: U2U Solaris Mainnet
Explorer: View on U2U Explorer
ABI: Available in src/contracts/SnakeToken.json
Snake Control: Mouse steering (PC) or arrow keys (keyboard)
AI Opponents: 6 computer-controlled snakes to compete against
Objective: Collect food to grow and avoid AI snakes
Rewards: Earn 1 $ST per food item collected
Entry Fee: Pay 1 $ST per match
Game Over: Touching AI snake ends game immediately
Custom ERC-20 Token: $ST (OopSss Token) on U2U Solaris Mainnet
Entry Fees: 1 $ST per match
Food Rewards: 1 $ST per food item collected
Daily Login: 2 $ST base reward + streak bonuses
Leaderboard Rewards: Bonus $ST for top performers
Wallet-based Profiles: Customizable snake skins
Daily Login Rewards: Encouraging retention with streak bonuses
Leaderboards: Daily/weekly rankings with bonus rewards
Community Challenges: Collective goals for bonus $ST pools
Node.js 18+ or Bun
Git
Clone the repository
git clone <repository-url>
cd oopsssInstall dependencies
bun install
# or
npm installSet up environment variables Create a .env.local file:
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your-walletconnect-project-idRun the development server
bun run dev
# or
npm run devOpen your browser Navigate to http://localhost:3000
PC:
Mouse: Steer snake (follows cursor)
Arrow Keys: Speed boost (costs $ST)
Space: Temporary speed boost
Mobile:
Finger swipes: Direction control
Tap: Speed boost
Connect Wallet: Connect your U2U Solaris Mainnet wallet
Claim Daily Reward: Get 2 $ST daily login bonus
Enter Match: Pay 1 $ST entry fee
Play: Survive as long as possible
Earn: Receive $ST based on survival time
Compete: Climb the leaderboards
Framework: Next.js 14 with TypeScript
Game Engine: Phaser.js 3.90.0
Styling: Tailwind CSS
Wallet Integration: RainbowKit + Wagmi
State Management: React hooks
Network: U2U Solaris Mainnet
Token Standard: ERC-20
Smart Contracts:
OopSssToken.sol: Token management and rewards
OopSssGame.sol: Game logic and leaderboards
Integration: Web3.js + Viem
ERC-20 token with game-specific features
Daily login rewards with streak bonuses
Entry fee management
Survival reward distribution
Game session management
Leaderboard tracking
Player statistics
Reward calculations
The game uses simple colored rectangles for MVP:
Player Snake: Green rectangle
Bot Snakes: Red rectangles
Orbs: Yellow rectangles
Background: Black canvas
Note: In production, these would be replaced with proper game sprites and animations.