How to make a card game in 2026 splits into two very different projects depending on which shape you pick. A single-player solitaire variant or a Slay-the-Spire-style deck battle is a weekend project in the browser today. A full trading card game with hundreds of unique cards and live PvP multiplayer is a several-month project even with AI help. This walk-through takes the middle-difficulty case (a two-player battle card game with a 30-card deck per side and generated card art), because that is the shape the SERP for how to make a card game is actually asking about and the shape that fits inside one WizardGenie browser session. Every Sorceress claim in this article was verified against the source code in this repository on July 3, 2026; every credit cost, every model version, every framework detail was pulled from a live file, not memory.
What kind of card game are you making?
The Wikipedia entry for card game catalogues at least eight distinct sub-genres, and the answer to “how do I make one” changes completely depending on which one you mean. Solitaire and its close cousins (Klondike, FreeCell, Spider, Pyramid) use a standard 52-card deck and famous rules; a first-time build here is roughly an evening. Battle card games with a fixed 30-card deck per side and a mana or energy resource (the shape most modern digital card games take) are a weekend build once the card list is written. Deck-building games in the Slay-the-Spire or Roguebook lineage add run-based meta-progression on top of that and land in a two- to three-weekend range. Collectible card games (TCGs) with hundreds of unique cards, live PvP, and a card economy are a several-month project and should not be attempted as a first card game.
The rest of this article assumes the middle case: a two-player single-device battle card game with a 30-card starting deck per side, three-mana-per-turn resource, and a card-back-plus-card-face art pass generated on AI Image Gen. Scaling up (adding a run system, unlocking cards, PvP over the network) is a second-session job once the core loop feels right.
The stack you need to make a card game in the browser
The 2026 stack for how to make a card game in a browser without touching Unity, Godot, or Unreal is genuinely small. You need one AI coding agent that can write real project files (not just chat with you about them), one AI image model that can generate a coherent card-face style, one asset-processing pipeline that turns generated art into game-ready sprites, one music generator for menu and battle loops, and one sound-effect generator for card flips, mana clicks, and damage hits.
Every piece of that lives inside Sorceress on July 3, 2026. WizardGenie is the browser AI game engine and the dual-agent code writer; the Planner runs on a top-tier reasoner (Claude Opus 4.7, GPT-5.5, Gemini 3.1 Pro, or Grok 4.2) and the Executor runs on a cheap fast typer (DeepSeek V4 Pro, Kimi K2.5, or MiniMax M2.7). This split is verified against the CODING_MODELS lineup in src/app/_home-v2/_data/tools.ts lines 734 to 742. AI Image Gen ships 12 flagship image models per src/lib/models.ts; the workhorse picks for card art are Nano Banana at 6 credits, Seedream 4.5 at 6 credits, and Flux 2 Pro at 6 credits. Auto-Sprite v2 turns those generated card faces into consistent sprite-sheet frames with card-back templates. Music Gen runs Suno V5.5 at 10 credits per generation (MUSIC_CREDIT_COST at src/app/music-gen/page.tsx line 26). SFX Gen and Sound Studio handle the audio hits (SEED_AUDIO_CREDITS_PER_SECOND = 1 in src/app/sfx-gen/page.tsx line 24; SOUND_CREDIT_COST = 1 per sound in src/app/sound-creator/page.tsx line 28). Everything shares one credit pool.
How to make a card game in five steps
The full workflow for how to make a card game with AI in the browser breaks into five steps that map directly to five WizardGenie sub-prompts. Each step is small enough to hand to the Planner as one design brief, and each step ends with a testable milestone (a real thing running in the browser tab). The five steps: sketch the rules and the card list; generate every card face with AI Image Gen; wire the deck and turn logic with WizardGenie; score the game with Music Gen, SFX Gen, and Sound Studio; ship the finished browser build to your own hosting or an itch.io HTML5 page. The rest of this article walks each step with the exact prompts, tools, and verified costs.
Step 1: Sketch the rules and the card list
Before you type a single WizardGenie prompt, write a one-page rules document. This is the design brief the Planner will read on every subsequent step, so precision here pays off across the whole session. Cover the resource curve (starting hand size, mana per turn, hand size limit), the win condition (target health, turn limit, deck-out rule), the card types (attack, defence, skill, power, mana ramp), and the card cost curve (how many one-cost, two-cost, three-cost cards exist across the 30-card deck). For a first battle card game with three-mana-per-turn, a working curve is roughly 10 one-cost cards, 10 two-cost cards, 8 three-cost cards, and 2 rare five-cost bombs.
Write the card list next. For a first pass, thirty cards divided across four categories works: fifteen basic attacks with variable damage numbers (Strike +6, Heavy +8, Slam +12), five defence cards with block values (Guard +5, Bulwark +8), five skill cards with situational effects (Draw two, Deal two damage twice, Shuffle a rare into deck), and five “rare” specials with two-line rules (Deal five damage; if the opponent has no cards in hand, deal ten instead). Do not try to be clever with keyword mechanics on the first pass. Keyword systems like “Vulnerable”, “Weak”, or “Frail” can be added in a second WizardGenie session once the core loop is real. The playing card Wikipedia entry is a solid reference for classical suits and card structure if the game shape wants to use standard 52-card art rather than custom fantasy art.
Step 2: Generate every card face with AI Image Gen
Card art is the single asset category that most defines how professional a card game looks, and it is also the most expensive slice of the first-card-game budget if you generate carelessly. The correct approach on AI Image Gen is to pick one model, one style prompt, and one aspect ratio, then iterate a small batch of five cards on that model before committing to the full run. Model-hop between the twelve options only if the first small batch does not land the style.
The workhorse defaults for card art in the browser today are Nano Banana at 6 credits per card, Seedream 4.5 at 6 credits, and Flux 2 Pro at 6 credits (per src/lib/models.ts lines 71 through 415). All three handle stylised fantasy card art cleanly, with Nano Banana leaning cleaner-line and Flux 2 Pro leaning more painterly. Portrait aspect ratio (2:3) matches the classic playing-card shape; use 2:3 for card faces and reserve 3:2 landscape for the shared background art behind the battlefield. Prompt every card with the same style anchor phrase (something like “fantasy card face, dark parchment border, centre illustration, painterly digital art, no text, no card frame, portrait aspect”) plus one sentence describing the specific card content. Add a reference image once the first card lands the style and use it as a consistency anchor on every subsequent generation.
For a 30-card first deck at 6 credits per generation on Nano Banana or Seedream 4.5, the raw art cost lands at 180 credits, roughly $1.80 at the Sorceress Starter tier ($10 for 1,000 credits per CREDIT_TIERS in src/app/plans/page.tsx line 49). Add another 18 credits for three background tiles and 6 credits for a card back template, totaling ~204 credits or roughly $2.04 in raw generation cost for the full card game art pack. Auto-Sprite v2 then packs those faces into sprite-sheet strips that the game engine can address by index, and adds a subtle card-back-to-card-face flip animation as a bonus.