Appearance
Sample Projects
Metaplay publishes a collection of sample projects that demonstrate the SDK's features.
Appearance
Metaplay publishes a collection of sample projects that demonstrate the SDK's features.
Metaplay's sample projects range from starting points for new projects to complete games. Each sample's entry says what it is and what it demonstrates.
Most samples are in the metaplay-shared/samples repository on GitHub, and each sample's entry links to its source. The samples in metaplay-shared/samples and the Blazor starter project are licensed under the Apache License 2.0; the Metaplay SDK they build on is licensed separately.
Looking to integrate Metaplay? Check out the Getting Started guide for a quick introduction to the SDK and how to get started.

The Blazor starter project is the starting point for new Metaplay games that run in the browser. The whole stack is C#: a Blazor WebAssembly client, a Metaplay game server, and game logic that both of them run. It contains a small clicker game to replace with your own. It is built to be developed with an AI coding agent, which can build, run and test the game in a browser without a game engine editor, and the getting-started instructions install the Metaplay Agent skills.
Features:
AGENTS.md covers building, running and testing the project, and AGENTS_GETTING_STARTED.md walks an agent through the first setup.AGENTS_FIRST_DEPLOY.md walks a coding agent through deploying the game server and the web client to the cloud.Blazor Starter Project · Source on GitHub

Hello World is a minimal Metaplay project for Unity. Its game is a click counter, so the project holds little besides the Metaplay integration itself. When metaplay init project initializes Metaplay in an existing Unity project, it adds the SDK and this sample's code to it, as a starting point for your own player state and actions.
Features:
ApplicationStateManager initializes the SDK, connects and starts the session. After a lost session it reconnects, either at once or after the player presses Reconnect in an error popup.RawClient/ is a .NET console client that runs the same shared game logic against a local server.Hello World Sample · Source on GitHub

Sticky Paws is a two-player collectible card game. Players build decks from their collection and take one into a ranked match against another player, or into a practice match against a bot. The cards are deliberately simple, because the sample is about how a live match and the players' persistent accounts affect each other: the collection decides the deck, and a ranked result can move a card rank from the loser's collection to the winner's.
Features:
Source on GitHub · Play in your browser

Table Stakes demonstrates the live-service and monetization features of a free-to-play game around a simple core game. Some of the features are built on Metaplay's own systems and others are game code on the player model, and the sample's documentation says which approach each one uses. The core game is a real-time trick-taking card game for four players, in which bots fill any seat that no person takes.
Features:
Source on GitHub · Play in your browser

Ninja Time Trial is a one-button autorunner: hold to charge a jump, let go to launch, and race the ghosts of other players' runs up a short course. It shows how a conventional real-time game connects to a Metaplay backend: the run plays on the client without the server, and the server decides afterwards what the run was worth.
Features:
Source on GitHub · Play in your browser

Megaton is a real-time free-for-all for four nations on a 3D globe, in which every player launches missiles at the others' cities and CPU nations take the seats that no player fills. It is a multi-engine sample: its browser client, written in Blazor, and its Unity client play in the same matches.
Features:
SharedCode/) and the engine-neutral client code (ClientCore/), and each draws the game with its own engine.HelloNFT adds Metaplay's NFT support to a click counter. Players bind an Immutable X wallet to their account, see the NFT characters that the wallet owns, and spend clicks to level them up. The wallet binding works only in WebGL builds, and Metaplay's Web3 features require a service contract.
Features:
MetaNft class, and the server generates each NFT's public metadata from it: the name, description and image of its character type, and its level and strength.Getting Started with NFTs · Source on GitHub

Wordle is a Wordle clone built on Metaplay, and the finished code of the three-part Wordle Tutorial, which builds the game step by step. The project holds the code of all three parts, and a Tutorial menu in the Unity editor switches the client and the server between them.
Features:
Wordle Tutorial · Source on GitHub
Trash Dash is Unity's Trash Dash endless runner sample with Metaplay integrated into it, and the finished code of the tutorial on integrating Metaplay into an existing game. The integration adds one system at a time and keeps the original game's structure, without extensive refactoring. Its repository is not updated for each SDK release, so its SDK version can be older than the latest release.
Features:
Trash Dash Sample Project · Integrate Metaplay Into an Existing Game · Source on GitHub

Idler is an idle game in which players invest gold to unlock and upgrade producers that generate gold over time. Metaplay uses it as a test bed for SDK features, so its game is deliberately simple while it implements a wide range of features.
Features:
Idler Sample · Source on GitHub

Orca is a fully-featured, story-driven merge-2 mobile game, in which players merge items, construct buildings and complete missions for heroes across a set of islands. It is a version of Secret Shores, a free-to-play game by Zaibatsu Interactive that runs on Metaplay, modified to serve as Metaplay's live demo and open-sourced together with Zaibatsu. It has all the systems needed to soft launch a game, from progression and economy to monetization and LiveOps tooling. Its code is licensed under Apache 2.0, but its art and other assets may only be used within the sample.
Features:
Orca Sample · Orca - Architecture Overview · Source on GitHub · Play in your browser