
PixelWar
Play fast. Settle trustlessly.
Demo
About
The problem it solves PixelWar bridges the gap between Web2 speed and Web3 security, solving the conflict between user experience and trust. What it enables: •Wagering: Players enjoy smooth, real-time gameplay off-chain, eliminating the lag and gas costs usually found in fully on-chain games. •Trustless Security: Instead of depositing funds to a centralized server, wagers are locked in a smart contract escrow. This ensures funds are safe and cannot be tampered with by the developers. •Instant Settlement: Winners receive their payout automatically via smart contract immediately after the match, removing the need for manual withdrawals or trust in the platform. In short: It allows players to compete in fast, high-quality games while keeping their money safe and decentralized on the Base blockchain.
How it's made
Challenges we ran into Building a game on a fully immutable Smart Contract forced us to rethink how our app handles blockchain’s strict rule without touching the contract itself. 1. Surviving Smart Contract Reverts During testing, failed payout transactions used to crash our Node.js server, disconnecting all players. Solution: Wrapped all blockchain writes in try–catch. Now, errors are logged and the game state resets safely no crashes, no chaos. 2. Deployment Sync Nightmares Rolling out our Next.js app on cloud caused “Failed to find Server Action” errors when clients hit mismatched builds. Solution: Enforced atomic builds and strict frontend-backend version locks using pnpm. Deployment became seamless. 3. Making Hard Contracts Play Nice Blockchain is rigid: win or lose. Real-time gameplay is messy players disconnect, wallets lag, transactions fail. Solution: Built a verification layer on the server. Only clean, verified game states trigger on-chain payouts, saving gas and ensuring fairness.