← Portfolio/BitcoinDerby
Game — Unity (WebGL & Android)

BitcoinDerby

A live blockchain horse racing and betting game built in Unity WebGL. Players connect crypto wallets to race their Bitcoin Ordinals NFT horses, bet gems on race outcomes, and compete in AI-driven quests, all in real-time multiplayer with up to 100 live spectators per race.

Client
Confidential Client
Year
2024
Duration
18+ months (ongoing)
Team
3 Person
Unity WebGLBlockchainMultiplayerHorse RacingWebGLBettingLive OpsWeb3UnityUnity 3DNFTsPhotonPhoton FusionReal-Time

šŸŽÆ The Challenge

The core challenge was integrating 5 completely different crypto wallet SDKs across 2 separate blockchains (Bitcoin Ordinals and Ethereum) into a single Unity WebGL game, each wallet has its own authentication flow, API structure, and browser-based communication pattern. Simultaneously, the game required a real-time multiplayer race architecture capable of broadcasting live race state to 100 concurrent viewers while remaining stable on a WebGL client. Coordinating blockchain authentication, live server state, a gem economy, Stripe payments, and a full quest system as a sole developer within a continuously evolving client brief was the defining challenge of the project.

šŸ’” Our Solution

I architected each wallet integration as an independent, interchangeable authentication module, same interface, different provider, allowing the game to support 5 wallets without duplicating core logic. For the multiplayer layer, I chose Photon Fusion Dedicated Server Mode deployed as a headless build on AWS EC2, which gave the stability and concurrent session capacity needed for live race broadcasting. The gem economy was centralised through a REST API backend, decoupling all currency transactions from the client. Stripe was integrated with server-side webhook validation to ensure gem credits only fire on confirmed payments. The Quest system was built as a fully client-side simulation scheduled via API, removing the need for a dedicated server session and keeping infrastructure costs minimal.

šŸ“Š Results

5 crypto wallets integrated across 2 blockchains
4,000+ horse NFTs supported
100 simultaneous live spectators per race
10 horses per race with tier-based eligibility
Full Stripe IAP live in production
Zero post-launch critical bugs
Publicly accessible via WebGL
12+ months in continuous live operation

Want something like this?

Tell us about your project and we'll give you a free consultation and estimate.