Deckwood: Card Battle, an HTML5 card battle game
A single-player card battle game for the web, with 60 illustrated cards, a fox hero, five bosses and a campaign of 40 duels against the computer. Put critters on three lanes, spend acorns, ring the bell and win the Acorn Cup. Plain HTML, CSS and JavaScript ES modules, with no framework and no runtime dependencies.

The duel
Each side has 3 lanes. Play critters from a hand of up to 7 cards, spending acorns (one more each turn, up to 8), then ring the bell: every critter attacks the critter in front of it, or the rival hero when the lane is free. You start with a 20-card deck (up to 2 copies of a card) and 20 life, and you may swap up to 2 cards of the first hand.
Rest a finger on the bell (or point at it with the mouse) to preview the result of the attack before ringing it. 3 critters of one family on your lanes get +1 attack each, and the fox hero power, Fox Zap, costs 2 acorns for 1 damage, once a turn. There is an undo of the last play (not when it drew a card or ended the duel), an optional warning when a card can still be played, a recap of the rival's turn, a speed-up button and a Fast duels option.

Cards and families
60 cards in 5 families of 12: Forest, Marsh, Beach, Snow and Storm. 45 are critters and 15 are tricks. The critters have 9 abilities: Shield, Cheer, Thorn, Heal, Grow, Fly, Taunt, Last Breath and Double Strike. The tricks have 9 kinds of effects: heal, damage, boost, blast all, draw, freeze one, freeze all, hit the hero and push to another lane.
Every card is a line in data/cards.js, and its picture is a file named after its id.

Campaign: 5 worlds, 40 duels
Sunny Glade, Mushroom Marsh, Shell Cove, Frost Village and Storm Castle, with 8 duels each. Worlds 2 to 5 have a terrain lane (mud, sand, ice or spark), and a short picture story opens each of them. A final scene ends the campaign with a thank-you page.
Each duel has 3 stars: the win, the life left and the duel's challenge, 120 stars in all, with 4 kinds of challenges. Choose Easy, Normal or Hard before a duel; winning on Hard earns a crown. You start with the 12 Forest cards and win the other 48 in the campaign. There is no shop, no packs and no purchases.

Bosses with special powers
The 8th duel of every world is a boss: Elder Moss, Chef Croak, Captain Marola, Lady Frost and Baron Caw. Each boss has a power that acts every 3 turns: Deep Roots, Soup Time, Cannon Splash, Cold Stare and Thunder Call. The bosses have several poses and faces, and they enter the duel and show their power.

Decks and collection
Build 3 decks with names on a table with 20 places, by tapping or dragging, with a magnifier on each card. See the acorn curve, filter by family and cost, order by cost, read an advice line, use the automatic builder or draw a Surprise deck. An unfinished deck is kept. The album shows the 60 cards, and the Style screen has card backs (classic, one for each world and a champion back), the tables of the worlds and golden frames for a family.

Daily Challenge and Arena
The Daily Challenge is a duel made from the date, with a borrowed deck. It needs no server and counts the days in a row. The first try of a day is the same for everyone, and each new try shuffles again. The Arena opens after the campaign: duels in a row, with the life carried over and the record saved.

Presentation, 14 languages, phone and desktop
All the pictures are artwork made for this game: the 60 cards, the fox hero and the five bosses, 5 maps, 5 duel tables, 5 story scenes, picture stories and the interface. The effects use a canvas layer and the Web Animations API. There are 5 music tracks (one for the menu and the map, 3 for normal duels and one for bosses) and sound effects, with separate volumes.
Layouts for phones in portrait and landscape, tablets, desktop and ultrawide screens, with touch and mouse. Options for less motion, camera motion, vibration (where the device supports it) and full screen. 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese. Critter names are the same in every language.

Reskin it: what is in which file
The game reads its data when it starts, so most changes need no build step:
- data/cards.js: the 60 cards (family, type, cost, attack, life, ability and, for tricks, the effect)
- data/campaign.js: worlds, bosses, the life and level of every opponent, terrains, boss powers, difficulty levels, challenges, stars and prizes
- src/config.js: the feel numbers (timings, shake, effects)
- src/lib/locales/: one text file for each of the 14 languages
- assets/: the pictures, sounds, music and fonts, found by file name
What is in the package
- game/: the ready-to-host game. Upload it to any static web host; no server language, database or account.
- source/: the complete editable project in plain HTML, CSS and JavaScript ES modules, with 57 automated checks. Node.js 26.13 or newer is only needed for these optional tools.
- An illustrated buyer guide and a step-by-step customization guide, both in 14 languages.
- All the artwork, the music and the sound effects, and the Fredoka and Rubik fonts (SIL OFL 1.1).
Notes
- Single player against the computer. There is no online mode, 2-player mode, ranking, account, shop or in-app purchase in this edition.
- Progress is saved in the browser of each player (localStorage, key deckwood.v1). The game makes no requests to other servers.
- It needs static HTTP(S) hosting and does not run from file://.
- The translations were not reviewed by native speakers. It was tested on a computer in the Chrome, Safari (WebKit) and Firefox engines, and on a real device only on one iPhone during development.






























