Deck-builder.online

Guide

How to design cards and enemy intents in a roguelike deckbuilder

Updated 1 December 2026

A deckbuilder fight is a puzzle that resets every turn. The player holds a few cards and a few points of energy, and the enemy has already shown what it will do. The cards are the pieces and the intent is the clue. This article builds both in the Editor, using the sample game Lantern Descent: how to size a card, how to write its effects, how to give an enemy moves a player can read, and how to check that a fight can be won.

Open the Editor in another tab, press Samples, and open Lantern Descent to follow along. Making a game is free and needs no account.

Start with the numbers every card is priced in

Each card is priced against two settings in the Game and rules panel: the energy a player gets each turn and the number of cards drawn. Lantern Descent uses 3 energy and 5 cards. Decide these before you design a card, because changing them later changes the value of every card you have made.

Then fix one exchange rate. In Lantern Descent, 1 energy buys about 6 damage or about 5 block. Slash costs 1 and deals 6. Brace costs 1 and gives 5 block. Hold the Line costs 2 and gives 12, which is the same rate with a small bonus for spending most of a turn on it. The rest of the card pool is measured against these starter cards.

Rarity then raises the rate. Twin Cut, a common, deals 4 twice for 1 energy, which is 8. Crescent, an uncommon, deals 4 three times for 1 energy, which is 12. Wildfire, a rare, costs 2, deals 18 to every enemy and exhausts, so it can be played once per fight. The reward weights in the same panel decide how often each tier turns up after a fight. The sample's weights are 60 for common, 37 for uncommon and 3 for rare.

Build a card from effects

Open Cards and pick Spark. A card has a name, a type, a rarity, an energy cost and a target: one enemy you pick, all enemies, a random enemy or yourself. The rest is the Effects list, which is what the card does, in order. Each row is one effect chosen from a menu, and under every row the Editor writes the sentence the card will show.

The Effects list of the card Spark in the Editor: a row that deals 3 damage to the target, and a row that checks whether the target enemy has Exposed and, if so, draws 1 card. Under each row is the sentence it writes.
The effects of Spark, with the sentence the Editor writes under each.

Spark costs 0. It deals 3 damage, and then an If effect checks whether the target has Exposed and draws a card if it does. A card that costs nothing has to be small, and the condition gives the player a reason to play it at the right moment and not on every turn. Kindle, a starter that costs 2, deals 8 and applies 2 Exposed, which is the setup that Spark pays off.

Exposed makes its holder take 50 percent more damage, and it wears off by 1 stack each turn. That is where a status earns its keep. A Slash on an Exposed enemy deals 9 instead of 6. On turn 1, Kindle and a Slash deal 8 and 9, which is 17, against 18 for three plain Slashes. On turn 2 one stack is left, so three Slashes deal 27 against 18. Over the two turns the Kindle line deals 44 and the plain line 36.

Order matters because effects resolve from the top. Kindle deals its damage first and applies Exposed second. Swap the two rows and the same card deals 12, which is a different card.

Keep a card to one idea and one to three effects. If you need five rows to explain a card, it is probably two cards.

Make a number depend on the fight

Any amount can scale. You give a base, a multiplier, and something to count: block, hp, missing hp, cards in hand or in a pile, energy, stacks of a status, cards or attacks played this turn, or enemies alive.

The Effects list of the card Burn Bright: deal damage equal to 6 plus 3 for each stack of Might, written as Deal X damage where X is 6 plus 3 times your Might stacks, with the card's upgrade below it.
Burn Bright, which scales with the Might status, and its upgrade.

Burn Bright deals 6 plus 3 for each stack of Might. With no Might it is a plain Slash. With 4 stacks it deals 18 for 1 energy. Shoulder Check deals damage equal to your block, so it only works after the player has built some. A scaling card gives a deck a plan, and the price of a plan is that the card is weak without it, so check the number at both ends before you accept it.

The boxes under a card's cost change how it moves between piles. Exhaust removes it for the rest of the fight once played. Innate puts it in the opening hand. Retain keeps it in hand at the end of the turn. Ethereal exhausts it if it is still in hand at the end of the turn, and Unplayable stops it being played at all. Soot, in the sample, is ethereal and does nothing: enemies add it to your discard pile to clog the deck.

The Upgrade section can change a card's name, its cost, or its effects. Spark's upgrade raises 3 damage to 5. Shoulder Check's only drops its cost from 1 to 0. Lamp Oil gives 1 energy and draws 2, and its upgrade takes away the exhaust.

Give an enemy moves the player can read

An enemy's move is called an intent, and it is built the way a card is: a list of effects. For a move, the target of an attack is the player, and a block or a buff lands on the enemy itself. Rust Knight has three moves. Guard gains 9 block, Cut deals 11 and Cleave deals 15.

A fight in the Editor's playtest. Above the enemy, the Lamp Wraith, a tag shows its next move: a sword and 9, then the word Debuff. Below it are five cards, the energy counter and an End turn button.
The Lamp Wraith is about to deal 9 damage and apply a debuff.

In a fight the player sees the next move on a tag above the enemy. It shows the damage after every modifier, with a count such as ×2 when the move strikes more than once, and a word for Block, Buff or Debuff. Because the number is worked out from the current state, a status such as Faint on the enemy lowers the figure the player sees before they commit a card.

That is the whole value of an intent. A player who can see 15 damage coming can spend the turn on block, or race the enemy and take the hit, and either one is a decision. If the move were hidden, the same fight would be a guess. For every enemy you decide how much of the future the player can read, and the pattern is how you decide it.

Choose a pattern

An enemy picks its next move with one of three patterns, set in the Pattern section.

A fixed cycle plays its moves in order and starts again. Rust Knight runs Guard, Cut, Cleave. The player sees the whole sequence by watching it once, and can plan around the 15. The knight has 52 to 58 hp, and a starting hand is worth about 18 damage a turn, so the fight lasts about four turns once its 9 block is counted. Left unblocked, Cut and Cleave cost 26 of Wick's 70 hp.

The Moves section of the enemy Rust Knight: Guard gaining 9 block, Cut dealing 11 damage and Cleave dealing 15 damage, each with the sentence it writes, and below them the pattern, a fixed cycle of Guard, Cut and Cleave.
Rust Knight's three moves, and the fixed cycle that orders them.

A weighted pick chooses one move at random each turn, and a higher weight comes up more often. Mold Rat has Bite, 3 damage twice, at weight 3, and Gnaw, 6 damage, at weight 2. Bite is limited to 2 in a row, so after two Bites the rat has to Gnaw. The player sees only the coming move, so weighted enemies suit small fights where planning one turn ahead is enough. The limit matters because a run of the same move feels like cheating to the player and not like bad luck.

Phases change the pattern as the enemy loses hp. Stone Warden, an elite with 120 to 128 hp, cycles Slam for 16 and Brace for 12 block and 1 Might. Below 50 percent hp it moves to its second phase, gains 2 Might on the way in, and cycles Roar, which puts 2 Faint and 2 Brittle on you, and Crush for 22. The player can see the hp bar fall toward the threshold, and sees the new phase's first move before it lands.

The Pattern section of the boss The Drowned Bell: three phases. The first is a cycle of Toll, Dirge, Toll and Swell. Below 55 percent hp it first gains 14 block, then cycles Clang, Toll and Dirge. Below 25 percent hp it first gains 2 Might, then cycles Peal and Clang.
The Drowned Bell has three phases, each with something it does on the way in.

A boss with several phases is a few short fights in a row, so give each phase one new question. The Drowned Bell starts at full hp with Toll, Dirge, Toll and Swell. Below 55 percent it gains 14 block and adds Clang, 9 damage twice. Below 25 percent it gains 2 Might and plays Peal, 6 damage four times. Might adds to every hit, so the four-hit Peal grows fast, and the player learns it is the move to prepare for.

Across a fight, mix moves that ask different questions. Damage asks for block. Guard asks for patience or a burst of damage. Cinder Moth's Dust adds Soot to your discard pile and asks the player to cope with a worse deck. The Lamp Wraith's Drain puts Rot on you and asks you to end the fight sooner. An enemy that only attacks asks the same question every turn.

Check the fight can be won

Open Playtest a fight. You pick an encounter, a character, a deck, a starting hp and a seed. The same seed deals the same fight, so when you change one number, play the same seed again and you are comparing like with like. Use the hp a player is likely to have at that point on the map, because a fight tuned for 70 hp is a different fight at 45.

Every encounter also needs a recorded win. In Encounters, the Recorded win section holds who fought, with how much hp, with which deck and relics. The Rusted Hall's win starts at 60 hp with a deck that has three upgraded cards in it, which is a deck a player could plausibly have partway through a run.

The Recorded win section of the encounter The Rusted Hall: Wick fights with 60 hp and a deck of 13 cards, with a Find a win button, and the message that the recorded win works: 10 plays, over in 3 turns, seed 1.
A recorded win, replayed by the engine: 10 plays over 3 turns.

Find a win asks a bot to play the fight on up to 40 seeds and records a winning sequence of plays. If it cannot win, it says so and suggests a stronger deck or weaker enemies. Publishing replays every recorded win with the engine, and a game with a fight that cannot be won is refused. The Problems list shows the same check before you publish.

A recorded win shows that the fight can be won and nothing more. The bot looks ahead further than most players, so read the numbers beside the result. Turns taken is a better guide to difficulty than the fact of a win, and your own play in Playtest a fight is the best guide of all.

What the Editor leaves out

The list of effects is closed on purpose, so a recorded win replays the same way every time. That means there are no potions, no cards that cost X energy, no cards that ask the player to pick one from a pile, no generated maps and no sound. You draw each act's map yourself. Lantern Descent, with its 33 cards and 8 enemies, shows how much a short game can do inside the list.

Make your own

The Editor is free and needs no account to use: open the Editor. The Editor page lists what it can do. To see a finished game before you start, play Lantern Descent, the sample game that you can open from the Editor's Samples list.