Fighter Cards: A Turn-Based 3D Card Duel from a Brief
- Skill del Lab
- v0.1.1
- Game creation
Write four lines (stage, your fighter, the opponent, mood) and get a playable turn-based 3D card duel in one offline HTML file. Each fighter is a generated rigged model with a stat card, three skills and spoken lines; you pick a skill or Guard each turn against a seeded, replayable opponent. Models, sky, voices, sounds and music are generated through SandBase; the stage, turn rules and effects are code.
Esempio
Fighter Cards playable duel
L'esempio funziona in un frame isolato, senza accesso a questa pagina.
Esegui online
Eseguilo in un sandbox di SandBase e visualizza i risultati in Lab.
Apri in Lab ↗Cosa ottieni
Bring a stage, your fighter, the opponent and a mood; optionally the palette, landmark and music. The Skill returns a downloadable Skill (the duel engine, a budgeted 3D asset generator with rigging, verification) and one playable example with its generated media and billed cost.
Come funziona
- 01
Fill the slots
Describe the stage, your fighter, the opponent and the mood, for example a hilltop orchard threshing floor at sunset, a young beekeeper against a patchwork scarecrow, a playful harvest-festival rivalry. The spec writes both stat cards, the skills and the lines.
- 02
Plan and generate the media
npm run assets prints every SandBase call with its worst-case estimate and refuses a plan over the budget, without spending. With --confirm-real it makes the calls through your logged-in sandbase CLI or SANDBASE_API_KEY, saves each run id at once so --recover can download finished runs without paying again, and compresses both rigged fighters. The example made 34 calls and billed a few US dollars.
- 03
Build and verify
THEME=<id> npm run build:single inlines Three.js, the duel, both rigged fighters, the sky and every sound into one file that makes no network requests. npm run shoot runs the scene-verify checks, from the title and skill picks to a win, a loss and rematch. The example passed 39 of 39 checks.
FAQ
Does Fighter Cards call a model or need a key?
Only while a theme is being built. The asset step calls SandBase models for the two rigged fighters, the props, the sky, the voices, the sounds and the music, through your own SandBase login, and the scripts never read, print or store the key. Once built, the duel page itself makes no network requests and calls no model. Nothing is billed without --confirm-real.
Is the fight random?
The seed decides crits, dodges and stuns. The same seed and the same picks always give the same fight, which is what the replay link and the replay button use.
Why is the duel in a sandboxed frame?
It has no network and an opaque origin, so the card duel cannot touch this page or the outside world — what you play is the verified build.
Where is the share button?
The sandbox blocks the clipboard and navigation, so the end card shows the replay link as text to copy by hand.
Can I use my own models in Fighter Cards?
Yes. Put your own fighter GLB files in the theme’s media folder, skip generating those parts, and record their source and licence in CREDITS.json.
Can this page build me a new duel?
Not yet — a fresh theme calls SandBase models and the sandbox has no key for that. Run the Skill on your own machine with your agent for now.
Altri Skills
Tutti gli Skills Game creation →
Seagull Swoop
Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Wedding Cake Wobble
Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Hermit Tide
Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Clover Circuit: Estate Cut
Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Glide Gates: Lagoon Run
Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

3D Interactive Garden Islands
Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.

