
Collectible card game
Turn-based PvP collectible card sample
A two-player PvP collectible card game where the server runs every rule and both browsers replay the same C# actions.
Sample game
A four-player real-time card game where the server owns every deal, with a full live-service layer around it.
Four players compete in fast trick-taking hands of about 45 seconds each, and you can join a table straight from your browser. Card games are a good test for a backend because every hand has to stay secret, so the shuffle and the hands stay on the server and each player only receives their own cards.
It's worth exploring if you're building a real-time multiplayer game with a live-service layer. Matchmaking is set up so a table never waits, with bots taking any seats that players haven't filled. The game also has daily rewards, missions, events, cosmetics, server-validated purchases and a seasonal tournament on Metaplay Leagues, all managed from the standard LiveOps Dashboard without any custom dashboard code.
// the_deal
Hidden information on the server
The shuffle and every hand stay on the server, and each player only receives their own cards.
Each system in the game maps to a Metaplay feature. The label under each card names it and links to its page in the Metaplay docs.
The matchmaker forms a table as soon as four players are waiting, or after five seconds, and seats bots in any empty chairs. Bots are marked as computer players but play at a human pace.
Matchmaking and multiplayer entities(Metaplay docs, opens in a new tab)The shuffle, the deal and every hand stay on the server, and each player only receives their own cards, so a modified client has nothing to peek at.
Server-authoritative game logic(Metaplay docs, opens in a new tab)A free weekly points race that players opt into. Metaplay Leagues runs the season schedule, the player groups, the standings and the end-of-season rewards.
Leagues(Metaplay docs, opens in a new tab)A themed, week-long points challenge built on Metaplay LiveOps Events. Every match you finish scores points, one per trick taken plus a bonus for winning, towards one target and one reward.
LiveOps events(Metaplay docs, opens in a new tab)Offers are targeted at player segments defined in the game configs. Purchases go through Metaplay's in-app purchase flow, and the server validates each receipt before anything is granted.
Offers, segmentation and IAP validation(Metaplay docs, opens in a new tab)The bot client plays the same loop as a person over the same connection, so load tests exercise the real matchmaking and matches.
Bot client(Metaplay docs, opens in a new tab)Two steps and your coding agent has this sample running locally and can walk you through how it fits together, from the shared game logic to the game configs and the LiveOps Dashboard.
Prefer to run it by hand? The README has the commands.
$ brew tap metaplay/homebrew-tap
$ brew install metaplay$ scoop bucket add metaplay https://github.com/metaplay/scoop-bucket
$ scoop install metaplay$ bash <(curl -sSfL https://metaplay.github.io/cli/install.sh)The Table Stakes sample is at https://github.com/metaplay-shared/samples/tree/main/Samples/TableStakes. Clone https://github.com/metaplay-shared/samples, go into Samples/TableStakes and run metaplay skills install there to install the Metaplay Agent. Open a playable version of the game locally in my browser so I can try it, then walk me through how the sample is put together.

Collectible card game
A two-player PvP collectible card game where the server runs every rule and both browsers replay the same C# actions.

Autorunner
A one-button ninja autorunner that runs in the browser at 60 Hz, with the server validating every run to decide the time that counts.

Sports management
A head-to-head football manager league for 20 friends, with the meta of a top-grossing casual game around it.