DOT ARENA - DevPost Submission

Inspiration

The Web3 gaming space is flooded with complex, time-intensive games that require hours of grinding or pay-to-win mechanics. I saw an untapped opportunity: hyper-casual gaming with real financial stakes. Games like Agar.io and Slither.io proved that simple mechanics can be incredibly engaging, but they never offered real rewards for skill.

DOT ARENA was born from asking: "What if you could drop into a 60-second battle royale, risk a small amount of DOT, and earn immediate rewards for every elimination?"

Iwere inspired by:

  • Classic arcade simplicity - Easy to learn, hard to master
  • Polkadot's instant finality - Perfect for real-time reward payouts
  • The gap in casual crypto gaming - No grindy NFTs, no complex tokenomics, just pure skill-based earnings
  • Browser accessibility - No downloads, play instantly from any device

What it does

DOT ARENA is a hyper-casual multiplayer battle royale shooter where every kill literally pays.

Core Gameplay:

  • Drop into fast-paced 60-90 second matches
  • Eliminate opponents with different weapon types (pistol, shotgun, sniper, rifle)
  • Earn 0.9 DOT instantly for every kill (paid directly to your wallet via smart contract)
  • Pickup weapon upgrades scattered across the arena
  • Survive and dominate in real-time PvP combat

Key Features:

  • Browser-based - No downloads, play immediately at your skill level
  • Real stakes - Contract-funded prize pool pays rewards instantly
  • Skill-based earnings - Better aim = more DOT
  • Fast matches - 60-90 seconds per round, perfect for quick sessions
  • Polkadot-native - Built on ink! smart contracts with instant reward transfers
  • Socket.IO multiplayer - Real-time synchronization with 20Hz server tick rate
  • Visual polish - Animated characters, weapon effects, minimap, sound design

The Economic Model:

The contract holds a prize pool funded by sponsors/community. Each kill triggers an instant 0.9 DOT transfer to the player's wallet (10% dev fee). No entry fees, no complicated claiming - just play and earn.


How I built it

Technology Stack:

  • Frontend: Phaser.js game engine + Vite bundler
  • Multiplayer: Socket.IO with server-authoritative architecture
  • Smart Contract: ink! (Rust-based Polkadot contract)
  • Backend: Node.js game server with 20Hz tick rate
  • Network: Client-side prediction + server reconciliation for low-latency gameplay

Smart Contract Architecture (ink!):

- DotArena contract manages prize pool and reward distribution
- record_kill() function called by authorized game server
- Instant transfers: 0.9 DOT to killer, 0.1 DOT dev fee
- PlayerStats tracking with lifetime kills and earnings
- Contract can be funded by anyone to support prize pool

Game Server Architecture:

  • Server-authoritative physics simulation (prevents cheating)
  • Input validation and rate limiting
  • Collision detection with spatial hashing optimization
  • Kill tracking synchronized with blockchain
  • Weapon pickup management with respawn timers

Frontend Features:

  • LocalPlayer with client-side prediction (feels instant despite network lag)
  • RemotePlayer with interpolation (smooth movement of other players)
  • Entity interpolation rendering 100ms in the past
  • Visual effects: screen shake, damage flashes, bullet trails, recoil
  • Sound system with positional audio
  • Minimap with live player tracking

Development Process:

  1. Day 1: Built core single-player prototype with movement, shooting, and AI enemies
  2. Day 2: Implemented multiplayer architecture with Socket.IO server
  3. Day 3: Developed ink! smart contract with kill reward system
  4. Day 4: Integrated blockchain wallet connection and live reward payouts
  5. Day 5: Polish, visual effects, sound design, testing
  6. last day before submission: Crazy rush and simplification vs the initial idea to finish, while recovering from sub0 hack.

Challenges Iran into

1. Network Lag Compensation

  • Problem: Players were missing shots due to network delay
  • Solution: Implemented server-side lag compensation with position history rewinding, client-side prediction for local player, and entity interpolation for remote players

2. Preventing Cheating in a Money Game

  • Problem: With real DOT at stake, security was critical
  • Solution: Moved all game logic server-side (authoritative architecture), added input validation, implemented rate limiting, and verified all hits server-side

3. Blockchain Integration Complexity

  • Problem: Synchronizing real-time gameplay with blockchain transactions
  • Solution: Simplified to single contract call per kill, authorized game server account, and batched events to reduce gas costs

4. Bullet Synchronization

  • Problem: Bullets appeared in different positions for different players
  • Solution: Server creates all bullets and broadcasts to clients, with object pooling for performance

5. State Reconciliation

  • Problem: Client predictions drifted from server state
  • Solution: Implemented reconciliation with input replay - when server state differs, reset position and replay unprocessed inputs

6. Time Constraints

  • Problem: Limited hackathon time to build multiplayer + blockchain integration
  • Solution: Focused on core mechanics first, deprioritized complex features like treasury/governance

Accomplishments that I am proud of

Built a fully playable multiplayer game in 6 days with real-time combat that feels responsive

Working ink! smart contract that instantly pays rewards to players (0.9 DOT per kill)

Server-authoritative architecture - no cheating possible, fair for all players

Smooth multiplayer experience - client-side prediction makes it feel instant despite network lag

Created a new gaming niche - hyper-casual + skill-based earnings + real stakes (rare combination)

Browser-based accessibility - anyone can play without downloads or complex setup

Visual polish - animated sprites, particle effects, sound design, minimap, smooth camera

Scalable contract design - simple, gas-efficient, easy to understand and audit

Comprehensive documentation - architecture docs, integration guides, testing procedures


What I learned

Technical Learnings:

  • ink! smart contract development - Writing Polkadot contracts in Rust, managing storage efficiently
  • Network game programming - Client-side prediction, server reconciliation, lag compensation techniques
  • Real-time architecture - Building authoritative servers, preventing cheating, optimizing tick rates
  • Polkadot ecosystem - Using @polkadot/api, contract deployment, wallet integration

Game Design Learnings:

  • Simplicity wins - Players don't want complexity, they want instant fun
  • Real stakes change behavior - Players are more engaged when actual money is involved
  • Skill-based games need precision - Every frame of lag matters, netcode is critical
  • Feedback loops matter - Visual/audio feedback for hits, kills, makes gameplay satisfying

Business Learnings:

  • Hyper-casual + crypto is underexplored - Most Web3 games are too complex
  • Instant gratification - No claims, no waiting - immediate rewards work better
  • Community funding model - Prize pool can be crowd-funded by community/sponsors

What's next for DOT ARENA

Immediate (Post-Hackathon):

  • 🎮 Public playtest with my friends.
  • 🔐 Security audit of smart contract

Short-term (1-3 months):

  • 🏆 Leaderboards (daily/weekly/all-time top killers)
  • 🎨 Character customization (cosmetic NFTs, no P2W)
  • 📊 Player statistics dashboard (track your earnings, K/D ratio)
  • 🎁 Sponsored tournaments (larger prize pools for events)

Long-term (3-6 months):

  • 🌍 Multi-chain expansion
  • 🤝 DAO governance (Reduce what the players get per kill, place it into treasury, governed by the players, with the amount of kills being your voting power.)
  • 🏅 Seasonal competitions (ranked seasons with special rewards)
  • 🎬 Replay system (watch your best kills, share clips)

Vision:

Become the #1 hyper-casual earning game on Polkadot - where players can drop in for 5 minutes, have fun, and earn real money based purely on skill. No grinding, no NFT mechanics, no complexity - just pure, accessible, rewarding gameplay.

Built With

Share this project:

Updates

posted an update

I wish I got the game to a deployed state, and recorded a proper demo with my friends playing with me, but well, sub0 hackathon took my time as well as travels to argentina, the journey of DOT Arena continues on. Will use these to document the game becoming publically playable on testnet.

Log in or sign up for Devpost to join the conversation.