Getting Started
1. Import
Section titled “1. Import”Import the package into a Unity 6000.6 project. When Unity asks to import TMP Essentials, accept: the sample’s text needs them. If you missed the prompt, use Tools > TCG Kit > Import TextMesh Pro Essentials.
2. Play the sample
Section titled “2. Play the sample”Open Assets/TCGKit/Samples/ManaAndMinions/Scenes/Menu.unity and press Play.
- Play vs Computer: you play the deck chosen in the deck builder against the computer. Winning pays 30 Gold, losing 10.
- Two Players, One Screen: hotseat. The board is hidden between turns until the next player presses “I’m ready”.
- Play Online: shown when Netcode for GameObjects is installed. See Online Play.
- Decks: build decks from the cards you own.
- Shop: spend Gold on booster packs.
In a match: click a highlighted card to play it, or drag it onto your board. Click one of your creatures and then its target to attack, or drag one onto the other. Hover over a card to read it. When a card asks you to choose, click one of the highlighted options.
The sample scenes load each other in the editor without any setup. Before making a build, use Tools > TCG Kit > Add Sample Scenes To Build Settings.
3. Make your own game
Section titled “3. Make your own game”Use Tools > TCG Kit > New Game…, give it a name and a folder outside Assets/TCGKit,
and choose a starting point:
- Starter: a small working game with mana, life, creatures with attack and health, six cards, a starter deck, a computer opponent and a match scene. Open the scene, press Play, and change it into your own game from there.
- Blank: an empty game definition. Fill it in yourself; Tools > TCG Kit > Validator lists everything that is still missing.
Then:
- Open Tools > TCG Kit > Card Browser to add and edit cards.
- Give a card an ability with the New Ability Graph button in its inspector, or Add in the card browser. See Abilities and Rules.
- Change the rules of the game itself (zones, stats, turn phases, how a player wins) in the Game Definition asset. See Building Your Game.
- Restyle the card prefab and the match scene. See The Match Screen.
The validator also runs every time you press Play and reports problems in the Console. Turn that off under Tools > TCG Kit > Validate Before Play.
Learning from the sample
Section titled “Learning from the sample”Everything in Mana and Minions was made by one editor script,
Editor/SampleBuilder.cs, which you can read as a worked example. Its 35 cards between them
use every built-in node. Tools > TCG Kit > Rebuild Sample Game rebuilds the sample;
keep your own changes outside the sample folder, because rebuilding overwrites it.