uVegas: Blackjack - Authoritative Multiplayer

Server-Authoritative Multiplayer Casino Framework for Unity


Build secure, scalable online Blackjack experiences without reinventing your networking stack.


uVegas delivers a production-ready multiplayer foundation powered by Mirror, featuring full Blackjack logic, server-side validation, persistent user storage, and dedicated server support.


Designed for developers building real-money, social casino, or competitive multiplayer experiences.


🚀 Why uVegas?

  • ✅ Server-authoritative architecture (anti-cheat)
  • ⚡ Real-time multiplayer via Mirror
  • 🃏 Complete Blackjack implementation
  • 🔒 Secure server-side validation
  • 📱 Mobile & Desktop ready
  • 🌍 Extensible casino framework (Poker, Roulette, Slots planned)
  • ⏳ Long-term Unity version support
  • 📦 Full C# source code included

🃏 Gameplay System


Flexible Blackjack Rules


Includes 4 predefined rule sets:

  • Classic
  • European
  • Atlantic City
  • Vegas Strip

Fully configurable:

  • Double Down
  • Insurance
  • Surrender
  • Shoe size
  • Payout ratios
  • Custom rule presets in minutes

🂡 Card & Deck System

  • 52-card poker deck
  • Joker & back card included
  • Create fully custom decks (Skat, Canasta, etc.)
  • Runtime-configurable decks

🎨 Card Themes

  • 9 included themes (light, dark, neo styles)
  • PSD source files included
  • Easy reskin & branding

💰 Chip & Table Configuration

  • 9 chip denominations (1–5000)
  • Custom denominations supported
  • Editable colors & design (PSD included)
  • Per-table betting limits (Min/Max Bet)
  • Fully customizable table rules

🏨 Casino & Level System

  • Multiple casinos supported
  • Custom progression levels
  • Structured table assignment
  • Individual rules per casino

⚙️ Technical Architecture


🎮 Dealer State Machine


Round lifecycle handled via synchronized server-side state machine:

Idle → Betting → Dealing → Insurance → Player Turn → Dealer Turn → Resolution


Ensures deterministic multiplayer flow.


🔔 Event System


ScriptableObject-based events:

  • PlayerBlackjack
  • DealerBust
  • PlayerWin
  • Push
  • ReshuffleShoe
  • etc.

Fully extensible.


🌐 Multiplayer & Server Infrastructure


Snapshot & Queued Card Distribution


Ensures synchronized hands across clients during live rounds.


Lobby & Table Management


Real-time table discovery and seat management.


Persistent User Database

  • LiteDB-backed
  • Device ID authentication
  • Persistent chip balance
  • Auto-save system
  • In-memory cache for performance

Flexible Authentication


Replace built-in authenticator with custom Mirror Authenticator.


Dedicated Server Support

  • Multiple parallel servers
  • Configurable via server.cfg
  • Host, port, tickrate
  • Save path
  • Auto-save interval

Transport-Agnostic


Supports:

  • Telepathy
  • KCP

Unified transport abstraction.


Graceful Disconnect Handling

  • Automatic seat release
  • Data persistence
  • Clean state recovery

📚 Documentation & Support