Complex Systems · Real-Time Strategy

Grassland Iron Tide

A real-time strategy game hands the player many units, many commands and a clock that keeps running. If each mission invents its own controls, or a failure leaves the screen and the mission state disagreeing, the command system stops being predictable.

Chapter one, five missions, playable end to end in a desktop browser, with one command grammar across every mission and a checkpoint that restores the mission and its units from one save chain.

Solo project: product direction, mission design, interaction rules, implementation acceptance and evidence, with AI tools assisting the code, the copy and the original assets.

Mission two: resources, unit status and objectives around a battlefield that fills most of the screen

The problem

Grassland Iron Tide puts five historical missions into one real-time strategy chapter that plays through in a desktop browser. It was built for desktop web players, who manage several squads under a ticking clock.

Each mission wants something a little different, and the easy answer is a special rule for each one. Five missions later the player can no longer predict what a click will do, and escalating challenge turns into an interface that betrays them.

Failure is the other trap. If the screen comes back after a defeat but the mission state does not, the player stops trusting anything the game shows.

Three decisions

  1. A click means the same thing in every mission

    Click, box-select, Shift to add or remove, Ctrl to group and the right-click command menu are locked into one immutable grammar. A mission may restrict which commands are available, never change what an action means.

    The conflict
    Real-time strategy players manage multiple squads under a ticking clock. When later levels patch in custom buttons or override selection rules, escalating challenge turns into interface betrayal.
    What I gave up
    Per-mission custom shortcuts and buttons, which force players to unlearn muscle memory mid-chapter. Commercial-RTS command density, which overloads new browser players before tactical timing and terrain reading register. The cost: fewer tactical verbs than a full commercial RTS.
    Evidence
    Mission three's box-select, grouping and combat information use the same controls as every other mission, rather than a rule made for that mission.
  2. The map keeps the screen, and a defeat can be undone

    A fixed camera zoom keeps the battlefield the largest area, with objectives, minimap and command grid on the edges. Pause, the reason for defeat, the checkpoint and unit restoration share one 20 Hz simulation save chain.

    The conflict
    Crowded HUD chrome eats the playable map, while restarts that visually reset units without restoring the exact mission flags shatter trust after a hard defeat.
    What I gave up
    Restarting the whole stretch or chapter on defeat, which punishes tactical experiments in longer missions like Mission 4 with repetitive early play. Free camera zoom with floating mission text, which blocks unit clicks under live pressure. The cost: no macro zoom-out across large maps.
    Evidence
    After a failure in mission four, a checkpoint restore spares the player the whole stretch again.
  3. Only the mission being played is loaded

    Missions 1–5 are typed manifest definitions read by one shared runtime scene loader. Only the active mission's assets mount into memory, and retries reset state from in-memory checkpoints.

    The conflict
    Desktop web players abandon a game if the first loading bar freezes on five chapters of spritesheets, yet later missions still need instant retries without fetching assets again.
    What I gave up
    Preloading all five missions' spritesheets and maps at boot, which puts the bandwidth cost on first-time Mission 1 visitors. A separate Phaser scene class per mission, where any fix to box-select or checkpoints would have to be copied across five files. The cost: a brief asset fetch the first time a new mission opens.
    Evidence
    In the July 2026 release-candidate audit, upfront preloading of all five chapters' atlases delayed Mission 1 entry; the fix switched to loading assets per mission.

Try it yourself

Switch between Mission 1 and Mission 5 and issue the same directive, then trigger a checkpoint failure and watch the player avoid replaying the whole chapter.

Switch between Mission 1 and Mission 5, issue a shared directive, then trigger a checkpoint failure to see how players avoid replaying the whole chapter.

Lazy-loaded near viewport so initial case paint stays fast.

Ready: try the controls below to test state transitions and guardrails.

Built and tested

The missions are data, not separate programs. A chapter manifest sets the order and the unlocks; each mission definition holds its objectives, triggers and map. Underneath, one simulation runs at a fixed 20 Hz, and input, combat, movement, mission logic and vision all share its clock. The main menu shows only the chapter, the save state and the way in, with nothing from development left on screen.

The asset pipeline is held to the same standard as the code: 6 manifests and 75 registered assets, with 49 alpha files and 154 provenance records that a script can re-check.

The chapter, played through

Screenshots of the chapter-one build, from the strategic map through the missions to the chapter-complete screen.

The five-mission strategic map of chapter one
The strategic map shows progress, sets out the chapter and is the way back into a mission to replay it.
Mission two: resources, unit status and objectives around a battlefield that fills most of the screen
Mission two. Resources, unit status and objectives are all on screen, and the battlefield still takes the largest area.
Mission three: a box-selected group of units with combat information
Mission three. Box-select, grouping and combat information use the same controls as every other mission.
Mission four's failure screen offering to restore from a checkpoint
After a failure in mission four, a checkpoint restore spares the player the whole stretch again.
Mission five, the night ford
Mission five, the night ford: hiding, searching the camp, the packs and the way home run on one mission state.
The strategic map with all five missions complete
The map after all five missions. Its completed state comes from the real results and save data, not a static mock-up.

What was tested

  • Automated tests: 430 of 430 pass in the RC record, over mission logic, commands, movement, vision, checkpoints and the runtime asset contract.
  • Asset gate (verify:rts-art) passes in the RC record. The web build passes, with a known warning that the Phaser bundle is large.
  • Real browser, 1280×720 and 1920×1080: all five missions played through in sequence from the main menu, re-checking selection, grouping, commands, pause and the minimap, screen by screen for page scroll, clipping and covered buttons.

Five states

StateWhat happensHow it recovers
NormalThe battlefield fills the centre while unit status, minimap, objectives and the command grid update along the edges.Input, pathfinding, combat, vision and mission triggers stay deterministic on one shared simulation clock.
EmptyNo local save yet: the strategic map highlights the Mission 1 entry and the real save state, with no debug menus.Completed badges unlock only from saved mission completion data, never static mock-ups.
OfflineThe network drops mid-mission with assets cached: the mission, checkpoints and local saves carry on in the browser.If the next mission's assets cannot load offline, the between-mission fetch prompts a retry.
ErrorA corrupted save, or a missing or mismatched entry in the runtime asset manifest.Asset regressions are caught before build; an invalid save fails safely to mission start.
RefusedA locked command in an early or stealth mission stays visibly disabled; a defeat screen explains the exact cause.Focus lands on Restore checkpoint or Return to strategic map, and units and mission flags are restored together.

Results, limits and next steps

Chapter One, Embers of the Pale Wolf, plays end to end in a desktop browser. The completed map comes from the real results and save data. Evidence status: the five-mission acceptance comes from the local RC record, and the live link has not been through the same audit. These are system and browser checks, with no structured usability testing with outside players.

What the record can show is that chapter one plays through in the local RC build, and that the interaction logic and asset contracts it covers did not regress. A rule like 'a mission may restrict commands but never change them' can be held by a test, so the fifth mission is checked against the same grammar as the first. What the record cannot show is whether a new player learns that grammar. Each rule is written so that a test or a browser run can check it.

Limits

No structured usability testing with outside players. Consistent controls are not the same as learnable controls, so the case cannot claim the game is easy to pick up.

The five-mission acceptance comes from the local RC record, not from the live deployment. The live link opens, but it has not been through the same audit.

The web build passes with a known warning that the Phaser bundle is large. A large bundle can slow the first load of a game opened from a link, and that has not been measured.

Next

Run sessions with outside players and record where they get stuck in the first two missions, repeat the two-resolution playthrough on the deployed build, and measure the first load before splitting the bundle.

For interviewers

Process, research notes, rejected versions and hard questions. Collapsed by default.
Interaction Journey

How the work unfolded, stage by stage

Step-by-step trace of triggers, user expectations, system behavior, cognitive friction, and explicit recovery paths.

  1. Clean chapter manifest menu & five-mission strategic map

    Bench / hardware verifiedUX & IASystems & HW
    Trigger
    Player opens Chapter One (Embers of the Pale Wolf) in a desktop browser
    User mental model
    Show me only where the chapter stands, my saved progress, and how to enter or replay a mission—no debug toggles or wall-of-text tutorials.
    System action
    Main menu renders chapter state from real save data; strategic map routes into Missions 1–5 and lazily fetches only the chosen mission's assets.
    Cognitive friction
    Preloading all 5 chapters' spritesheets upfront creates a long initial stall before Mission 1 even starts.
    Edge & recovery
    Between-mission lazy fetch keeps Mission 1 entry fast while in-memory checkpoints enable instant intra-mission retries.
  2. Immutable click, box-select & command grammar across all 5 missions

    Automated / synthetic gateAI TrustUX & IA
    Trigger
    Player selects squads via click, drag-box, Shift toggle, or Ctrl groups and issues right-click commands
    User mental model
    Even when Mission 3 or Mission 5 introduces night fog or stealth goals, a box-select and right-click must mean the exact same thing as Mission 1.
    System action
    Shared command validator checks mission capability flags: a mission may restrict which verbs exist, never alter what an input gesture does.
    Cognitive friction
    Whether brand-new outside RTS players learn this pared-back grammar smoothly remains untested without structured player sessions.
    Edge & recovery
    Automated tests lock Mission 1 through Mission 5 against the identical command contract on every build.
  3. Fixed battlefield camera & edge-docked tactical HUD

    Bench / hardware verifiedUX & IASystems & HW
    Trigger
    Real-time 20 Hz simulation runs combat, EasyStar.js pathfinding, vision, and mission triggers simultaneously
    User mental model
    Keep the battlefield claiming the vast majority of pixels; dock objectives, minimap, and command grid cleanly along the edges.
    System action
    Locks camera zoom and anchors HUD strips at screen borders, verified at both 1280×720 and 1920×1080 for zero clipped/covered buttons.
    Cognitive friction
    Fixed zoom sacrifices broad macro overview across larger maps in exchange for predictable click hitboxes and zero text occlusion.
    Edge & recovery
    Minimap stays synced to the shared 20 Hz simulation tick so off-screen squad movement remains readable at the edge.
  4. Causal defeat explanation & single-chain checkpoint restore

    Bench / hardware verifiedSystems & HWAI Trust
    Trigger
    Player suffers defeat during a long stretch such as Mission 4 or Mission 5 (Night Ford)
    User mental model
    Tell me clearly why I lost, and let me resume from a verified checkpoint where both units and mission flags match—not restart the whole chapter.
    System action
    Pause, failure cause, checkpoint snapshot, and unit array restoration serialize through one unified save chain on the 20 Hz clock.
    Cognitive friction
    Decoupled UI objectives and entity arrays easily desync on retry, making restored troops stand in obsolete objective states.
    Edge & recovery
    Mission 4 checkpoint restore and Mission 5 multi-stage chain (stealth -> camp search -> packs -> way home) are verified end-to-end.
  5. Four-pillar RC verification & asset provenance gate

    Automated / synthetic gateAI TrustSystems & HW
    Trigger
    Release candidate build runs automated tests, asset contract gate, web bundle build, and dual-res playthrough
    User mental model
    Don't trust a green compiler alone—prove all 5 missions play end-to-end cleanly and disclose any live-URL or bundle-size gaps.
    System action
    430/430 Vitest tests pass, 6 manifests / 75 assets / 49 alpha / 154 provenance records pass gate, and 1280×720 + 1920×1080 playthroughs clear.
    Cognitive friction
    Phaser 4 web build carries a known bundle-size warning, and the live Vercel URL has not yet repeated the identical local RC audit.
    Edge & recovery
    All claims in the portfolio explicitly scope verification to the local RC record rather than overstating live or player-tested proof.

Before and after

Process scrubber · Per-level patches vs unified data pipeline

Unify ad-hoc mission controls into one immutable RTS grammar & single save chain

Compare bespoke level-specific overrides against the five-mission data pipeline and deterministic checkpoint architecture.

Before · Ad-Hoc Per-Level Macros
BEFORE: LEVEL-SPECIFIC SHORTCUTS & AUTO-KITE MACROS[Mission 3 Only] Auto-Dodge Rain Key[Mission 5] Auto-Play AI CommanderFailure: Players never trust transferable tactics when hidden auto-pilots change each stage.
After · Unified 20 Hz RTS Pipeline
Grassland Iron Tide unified five-mission architecture showing chapter manifest, 20 Hz simulation clock, edge-docked HUD, and shared checkpoint restoration
Vector micro-loop · Unified RTS command grammar

Queue commands → Unified dispatch → Deterministic checkpoint rollback

Consistent selection and save-chain restoration keep five escalating missions predictable under a live clock.

01Box Queue02Shared Grammar03Checkpoint Snap
01 · Box Queue

Box-selecting any mix of squads feeds one unified command queue across all five missions.

Playtest & architecture audit

Structural invariants locked during five-mission RC acceptance

Design decision

Enforced one unified grammar (click, drag-box, Shift, Ctrl, right-click grid) across the chapter manifest.

Rejection & Rework Archive

Versions I threw away

Logged defects exposed during hardware bench checks, live debugging, and AI-draft reviews—plus the structural fixes that replaced them.

  1. Grammar & Mission Audit

    2026-07
    Automated / synthetic gateAI TrustSystems & HW
    Artifact before
    Per-mission custom buttons, ad-hoc macro shortcuts, and separate Phaser scene overrides per level
    Failure exposed
    Players had to unlearn selection and command expectations mid-chapter; bugfixes in box-select or checkpoints drifted across five copied scenes.
    Fix applied
    Consolidated all five missions into typed manifests consumed by one runtime loader and locked one immutable command grammar tested by 430/430 assertions.

    Receipt: 430/430 automated RC test baseline + 04-mission-03.jpg unified HUD layout

  2. Release-Candidate Audit · Missions 4–5

    2026-07
    Bench / hardware verifiedUX & IASystems & HW
    Artifact before
    Separate UI objective tracking vs troop reset on failure, plus upfront preloading of all 5 chapters' heavy atlases
    Failure exposed
    Resets risked leaving troops respawned inside stale mission flags while heavy upfront loading delayed Mission 1 entry.
    Fix applied
    Unified pause, defeat causality, checkpoint snapshot, and unit restoration onto one 20 Hz save chain; switched to per-mission lazy asset loading; verified 1280×720 & 1920×1080 full playthroughs.

    Receipt: 05-checkpoint.jpg + 06-night-ford.jpg + dual-resolution RC walkthrough

Research VaultBench / hardware verified

Raw research notes

Verification boundary: 430/430 RC automated unit/integration tests, fixed-resolution HUD sweeps (1280×720 & 1920×1080), and 75-asset provenance verification passed. Structured playtesting with external RTS novices remains unexecuted.

5-Mission Command Grammar Consistency & Defeat-Recovery Protocol

Planned, not run: 6 strategy/tactics players testing Missions 1–3 back-to-back on desktop Chromium (1280×720 and 1920×1080).

Planned opening prompt (not run)Enter Chapter One from the main menu, command your vanguard using click, box-select, and right-click, and try recovering from an intentional tactical defeat in Mission 2.

Task Probe 01

Unverified hypothesis
Prompt
Transition from Mission 1 open skirmish into Mission 3 night-stealth rules without re-reading a tutorial.
What we watch for
Whether immutable box-select, Shift-toggle, Ctrl-group, and right-click verbs hold identical muscle memory across mission rule shifts.
Failure signal
A mission-specific special mechanic overriding standard right-click move or attack expectations.

Task Probe 02

Unverified hypothesis
Prompt
Trigger a mission loss (e.g., vanguard wiped or camp breached) and inspect the defeat overlay.
What we watch for
Player immediately identifies WHICH causal condition failed and restores cleanly from the single checkpoint without stale buffs/debuffs.
Failure signal
Generic 'Defeat' banner or ghost enemy timers leaking from the failed attempt into the restored checkpoint.

Task Probe 03

Unverified hypothesis
Prompt
Issue rapid flanks while tracking objective progress and minimap alerts at 1280×720.
What we watch for
Zero HUD clipping, zero hidden command buttons, and clear edge separation from the active battlefield.
Failure signal
Minimap or objective drawer overlapping playable flank paths.

Planned debrief question: With camera zoom fixed and zero auto-play shortcuts, did tactical clarity feel empowering or claustrophobic on larger skirmishes?

Interview pack

Questions interviewers ask

How do you keep a command system predictable across five missions?

By making the controls a grammar rather than a feature list. Click, box-select, Shift, Ctrl grouping and the right-click menu behave the same in every mission, and a mission can only restrict which commands are allowed. I chose fewer commands than a commercial RTS so that each one has a result a player can predict.

Jump to Three decisions ↓Consistent is not the same as learnable; no outside player has tried the controls in a structured session.
What happens when a player fails a mission?

The game says why, and a checkpoint restores the mission and the units from one save chain. Keeping them in one chain avoids the split where the screen looks restored but the mission state is not.

Jump to Three decisions ↓Checked by tests and by my own playthrough, not by watching players recover.
What does 430 of 430 tests prove?

That the covered behaviour did not regress in the release candidate: mission logic, commands, movement, vision, checkpoints and the runtime asset contract. The asset gate checks manifests, paths, atlas sizes, alpha and provenance. The full five-mission playthrough at two resolutions is the part only a real browser could show.

Jump to The problem ↓Tests prove the rules hold; they do not show the game is easy to pick up.
It is a game with no player research. Why is it in a UX portfolio?

Because the hard part was interaction design: one grammar for many commands, information placed so the battlefield stays readable, and failure that explains itself and can be undone. Those decisions can be inspected in the build and checked by tests.

Jump to Results, limits and next steps ↓Whether players learn it quickly is the open question, and it needs outside playtests I have not run.
4-Lens Adversarial Red-Team DefenseUnverified hypothesis

How others have challenged this design

Core thesis: Withholding free camera zoom and auto-battle AI keeps tactical cause-and-effect legible across five missions under one immutable command grammar.

Interrogates business framing, visual hierarchy, and whether deliberate friction actually earns its keep.

Adversarial ChallengeHigh Scrutiny

Modern strategy titles let players zoom out freely and delegate squads to AI stances. Doesn't locking zoom make battles feel cramped?

Empirical Defense

Fixed zoom trades macro map panoramas for stable unit hitboxes and edge-pinned HUD geometry verified at 720p/1080p. Refusing auto-battle ensures players actually feel the tactical tradeoff behind every defeat.

Code & Hardware Receipt

720p/1080p HUD geometry checks + causal defeat modal + 75-asset provenance manifest.

Unresolved Hypothesis (Honest Gap)

Unassisted playtesting with 6–8 outside RTS novices across Missions 1–3 has not yet run to validate learning-curve friction.

Jump to Raw research notes ↓
Grassland Iron Tide | Lewis Dong