Ludo Palace | HTML5 Game – Online Multiplayer Ludo
Ludo Palace is the classic board game Ludo in a royal palace look, made with pure HTML5 Canvas and JavaScript. Two to four players race their gem tokens around the board and into the palace, capture each other’s tokens and try to bring all of them home first. Play against smart computer players, with friends on one device, or online with friends and players from anywhere: rooms with a code or an invite link, quick match, emotes, reconnect, and the game goes on even when the host leaves. Online play needs no game server of your own.
It runs in any modern browser on mobile and desktop, in portrait and landscape, from a web server or straight from disk. No framework, no build step.
Gameplay
- Classic Ludo for 2, 3 or 4 players with four modes: Classic, Quick (tokens start out, two home to win), Master (capture before you may go home) and Teams 2v2
- Play vs computer (easy, normal, hard), Pass & Play on one device, or online
- Safe stars and start squares, extra rolls for a 6, a capture or a token home, three 6s end the turn, exact roll to reach the palace (all rules in a commented config file)
- A living board built from pieces: it assembles itself at the start, tiles spring under every hop, captures send a shock wave across the board, the player to move gets a soft glow, stars and the centre medallion are animated
- Gem tokens with shadows, tumbling dice, gem-shard captures, confetti and a ranking at the end
- Eight animated how-to-play pages played on the real board
Online multiplayer
- Private rooms with a short code and an invite link (share sheet or clipboard)
- Quick match: players who want the same mode meet at one table; the game starts when it is full
- Lobby with seats in every colour, ready flags, computer seats and kick
- Painted emotes and quick-chat phrases
- Turn timer with autoplay after missed turns (one tap takes back control)
- Reconnect after a page reload or a lost connection, same seat; the game plays for players who are away
- The host can leave or put the game in the background: another player takes the room over and the game goes on
- Provably fair dice (commit-reveal: the host cannot choose the rolls)
- Peer-to-peer connections encrypted by the browser, encrypted signaling, rate limits and text cleaning
- One setting switches online play off completely
Online Play Uses Third-Party Services
Important: online play needs no game server of your own, but to let players find each other it uses free public services run by third parties: the PeerJS cloud server, public MQTT brokers (EMQX, HiveMQ) and public STUN servers (Google, Cloudflare). These are external services: they are not part of this item, are not run or controlled by its author, have their own terms, policies and limits, and can change or stop at any time. No account for them is included or needed. You can use your own servers instead (they may have their own costs), or switch online play off.
- Works out of the box with the free public PeerJS, MQTT and STUN services (external third-party services with their own terms and limits)
- Your own PeerJS server, MQTT broker and TURN server can be set in the config file (external accounts or hosting may be required; each has its own costs)
- Online play can be switched off with one setting: the game then makes no outside connection at all
Third-party services disclaimer: Ludo Palace does not include any server, hosting or network service. Services such as the PeerJS cloud server, the public MQTT brokers broker.emqx.io and broker.hivemq.com and the Google and Cloudflare STUN servers are provided by third parties: each one has its own terms and policies, may have usage limits, and may change, slow down or stop at any time; your own or paid alternatives may require their own accounts and involve fees or other costs. You are responsible for the services you use with this item, for complying with their terms and with the laws that apply to you (for example privacy rules such as GDPR), and for any costs they involve. The author of this item is not affiliated with these companies, does not control their services and is not responsible for their availability or performance.
For developers
- Pure HTML5 Canvas + JavaScript, clean and commented code, no framework lock-in
- A “where to change what” guide at the top of the config file; every setting commented
- The Ludo rules are a separate file with no drawing code (one plain JSON game state)
- Serverless multiplayer library included (rooms, lobby, reconnect, host migration, fair random numbers)
- Easy reskin: all art is PNG, all sounds are MP3, fonts are WOFF2
- Animated backgrounds, logo and board effects defined in small, commented functions
- Hooks at the start and end of every game for your own analytics or ads (none included)
- Responsive layouts for every screen shape, sharp on high-DPI screens, touch and mouse
- Detailed documentation with a Quick Start guide
What you get
- The complete game (game folder)
- Documentation (documentation folder)
Credits
All art, sound effects and music were made for this item. Fonts: Baloo 2 and Cinzel (SIL Open Font License).