Jump to content

TownWalker/SPEC

From MindAttic Docs

TownWalker — Product specification

The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree. docs/RELEASE.md says which part of this the current milestone delivers.

1. Product definition

A product in docs/ECOSYSTEM.md (Games): the walking-town traversal lab and its chosen game. TownWalker is a Unity 6 (6000.4.3f1) project about towns that walk the surface on giant legs. Mankind lives on them because the surface is overrun; the player's party is a ground team that disembarks to fight and bring back fuel, and the town is the hub. It began as a traversal lab: six demos play the same scan → choose → walk/send → battle card → haul loop so traversal styles can be compared on feel, time-to-battle and taps per decision. The finished product builds out the chosen direction (the Isometric Expanse with a Route Map overview, recommended by the 2026-10-10 comparison) into a one-hand walking-town traversal prototype with fuel and stranding rules and a town hub, shipped as a Windows player on R:\MindAttic\Apps\TownWalker and an Android APK. Battles stay a placeholder card.

2. Scope boundary

2.1 In the product

  • Walking-town rigs drawn and simulated from scratch: the four-legged cow and the 3–6-legged spider town.
  • The shared engine-free loop (Lab.Core) and the time-to-battle / taps scoreboard.
  • Six traversal demos behind a lab menu, and the written comparison that picks one.
  • The chosen traversal (iso expanse + route overview), fuel and stranding, a town hub, a CC0 asset pass.
  • Labcheck automation, builds, the shared run menu and R: deploys.

2.2 Never in the product

  • Real battles: the battle stays a placeholder card (BIBLE §3); a battle system belongs to a battle game.
  • Wheels, trains or Conestoga wagons: the town always walks (PLAN guard-rail 3).
  • Virtual sticks, menus inside menus or two-hand controls: tap, hold or drag only.
  • The owner's mood-board art or any licensed, stock or AI art: style reference only; CC0 or drawn from scratch.
  • Porting anything into GridGameGaiden or the GridGame games (BIBLE §3).
  • WebGL builds and store releases.
  • Audit-generated test sweeps, generic cleanups and open-ended bughunts (GGC-T5, T6, T7, T11, T12, T13, T38, closed wont-do).

3. Users and roles

  • The player (the owner, on Windows or a phone): steers the walking town with one hand.
  • The owner as decision-maker: reads the comparison, picks the direction, signs off each milestone.
  • Developers and agents: rely on Lab.Core tests and labcheck screenshots to change it safely.

4. Requirements

Status is built (closed ticket, with evidence) or the milestone that delivers it (§7).

E1. Walking town rigs — GGC-T54 — built

F1.1 Cow walker — GGC-T55 — built

  • S1.1.1 Four-legged gait — GGC-T56 — built As a player, I want the town to walk on four two-bone legs in a diagonal-pair gait, so that it reads as a heavy quadruped. Evidence: Assets/Lab/App/Walker/WalkerRig2D.cs.
  • S1.1.2 Terrain contact and turning — GGC-T57 — built As a player, I want each leg to sample the terrain, hooves to plant flat and the town to turn in place before striding. Evidence: 5d97af5 (GGC-T15), 14abbef (GGC-T19).
  • S1.1.3 Spring-leg hull — GGC-T58 — built As a player, I want the hull to ride on simulated spring legs with lift, roll and pitch, so that the walk has weight. Evidence: 14abbef (GGC-T19).

F1.2 Spider town — GGC-T59 — built

  • S1.2.1 Stable free gait — GGC-T60 — built As a player, I want a spider town on 3–6 legs to walk the iso expanse with a stability-checked gait. Evidence: ffa6881 (GGC-T18).

E2. Shared lab loop — GGC-T61 — built

F2.1 Lab.Core loop — GGC-T62 — built

  • S2.1.1 Scan to haul loop — GGC-T63 — built As a player, I want to scan, pick a site, walk or send the bike, face a battle card and haul fuel home, the same in every demo. Evidence: Assets/Lab/Core, Tests/Core.Tests loop tests.
  • S2.1.2 Routing on any space — GGC-T64 — built As a developer, I want A* over node graphs and hex grids with symmetric, capped route graphs and no isolated site. Evidence: Assets/Lab/Core/Routing.cs, 49e1a64 (GGC-T3).

F2.2 Loop scoreboard — GGC-T65 — built

  • S2.2.1 Time-to-battle and taps — GGC-T66 — built As the owner, I want each demo's time-to-battle and taps per decision on the lab scoreboard, so that styles compare on numbers. Evidence: LabSession metrics, LabApp.cs scoreboard.

E3. Six traversal demos — GGC-T67 — built

F3.1 Demos — GGC-T68 — built

  • S3.1.1 Route Map — GGC-T69 — built: walk the town along fogged node-graph roads or send the bike in its range ring.
  • S3.1.2 Horizon Strip — GGC-T70 — built: the walker strides across parallax side-view landscapes while I hold.
  • S3.1.3 Isometric Expanse — GGC-T71 — built: tap anywhere on hilly iso terrain; the town turns and walks there by A*.
  • S3.1.4 3D Low-Poly Walker — GGC-T72 — built: an IK-legged walker climbs procedural terrain; orbit drags never count as taps (64e926e).
  • S3.1.5 Radar Sectors — GGC-T73 — built: the town walks a real-time hex fog grid toward the chosen hex, retargetable anytime. (Spider Town is S1.2.1.) Evidence: the demos in Assets/Lab/App/LabApp.cs, labcheck screenshots.

E4. Lab tooling — GGC-T74 — built

F4.1 Automation and builds — GGC-T75 — built

  • S4.1.1 Labcheck automation — GGC-T76 — built As a developer, I want labcheck to play each demo's loop over the automation server and save screenshots. Evidence: LabAutomation.cs, tools/labcheck.py.
  • S4.1.2 Builds and run menu — GGC-T77 — built As a developer, I want Installed Windows and Android builds and a run.ps1 that deploys to R: with a headless mode. Evidence: 64e926e, 675cc2a, d081550, f41e997.
  • S4.1.3 Capture and brochure — GGC-T78 — built As the owner, I want sessions recordable through MindAttic.Media.Capture and the GitHub Page to be the shared brochure. Evidence: 1bd97fa (GGC-T40), 911f6c5 (GGC-T51).

E5. Six-demo lab — GGC-T42 — MS-78

F5.1 Loop health — GGC-T44 — MS-78

  • T5.1.1 Labcheck passes for all six demos — GGC-T48 — MS-78 As the owner, I want labcheck green for routemap, horizon, iso, spider, lowpoly3d and hex, with screenshots reviewed and the passing run recorded.

F5.2 Core loop correctness — GGC-T45 — MS-78

  • T5.2.1 LabSession edge cases — GGC-T4 — MS-78 As a developer, I want NUnit tests pinning scan cost, stranded walks, arrival, send range, battle loss and fuel caps.

E6. Direction and delivery — GGC-T43 — MS-78

F6.1 Installed Windows players — GGC-T46 — MS-78

  • T6.1.1 Debug and Release players deployed — GGC-T41 — MS-78 As the owner, I want both players at R:\MindAttic\Apps\TownWalker{Debug,Release} through the shared run menu.

F6.2 Traversal comparison — GGC-T47 — MS-78

  • S6.2.1 First timed comparison — GGC-T79 — built Five demos timed; Isometric + Route Map recommended (237ee53, 2026-10-10).
  • T6.2.2 docs/COMPARISON.md — GGC-T49 — MS-78 As the owner, I want all six demos compared on time-to-battle, taps, frame time, screenshots and effort, ending in a recommendation I sign off.

Cross-repo: the GridGame rename — GGC-T52 — MS-27 (GridGame.Unity)

  • GGC-T52 points TownWalker's references to GridGame.Unity, GridGame.Studio and Assets/GridGame at the new Convergence names. It is part of GridGame.Unity's story GG-T2261 (epic GG-T2198) and runs with that rename.

E7. Fuel and stranding — GGC-T80 — MS-139

F7.1 Fuel economy — GGC-T81 — MS-139

  • S7.1.1 Fuel drives the choice — GGC-T82 — MS-139 As a player, I want walking to cost more fuel than sending the bike, and scans to cost fuel, so that every move is a decision. Acceptance: Given a chosen site, when the route panel opens, then it shows the fuel cost of walking and of sending before I commit.
  • S7.1.2 Haul refills the tank — GGC-T83 — MS-139 As a player, I want a won expedition to haul fuel and ore home, capped at the tank, with the gauge showing the change.

F7.2 Stranding and recovery — GGC-T84 — MS-139

  • S7.2.1 Stranded town — GGC-T85 — MS-139 As a player, I want a town that runs dry to stop walking, leaving only a team send to a nearby site to bring fuel back. Acceptance: Given an empty tank, when I tap a destination, then the town does not walk and the send option is offered.

E8. The chosen traversal — GGC-T86 — MS-139

F8.1 Iso expanse with route overview — GGC-T87 — MS-139

  • S8.1.1 Iso as the main view — GGC-T88 — MS-139 As a player, I want the game to open in the Isometric Expanse with the cow walker, the lab menu kept only as a developer option.
  • S8.1.2 Route map overview — GGC-T89 — MS-139 As a player, I want one tap to switch to a fogged Route Map of the same world to plan long walks, and one tap back.

F8.2 Town hub — GGC-T90 — MS-139

  • S8.2.1 Hub between expeditions — GGC-T91 — MS-139 As a player, I want the team to board the town after a haul and a one-hand hub screen to show fuel, ore and the next scan.

F8.3 Polish and release 1.0 — GGC-T92 — MS-139

  • S8.3.1 CC0 asset pass — GGC-T93 — MS-139 As a player, I want terrain props and the town body to use credited CC0 assets (Kenney, Quaternius) where the procedural look is too plain.
  • S8.3.2 Release and sign-off — GGC-T94 — MS-139 As the owner, I want to play the 1.0 Release player and APK end to end and record the verdict, with SPEC and BIBLE current.

5. Non-functional requirements

  • One hand: tap, hold or drag only (PLAN guard-rail 2). Traversal stays a 15–40 s beat between battles.
  • Everything is code-built from LabApp.cs; no prefab or Inspector wiring (GGC-LAW-2).
  • Lab.Core stays engine-free and tested under dotnet test (GGC-LAW-3).
  • Free assets only, recorded in CREDITS.md (GGC-LAW-4).
  • Windows frame time is measured per demo in the comparison; the 1.0 APK must hold a playable frame rate on a phone.

6. Interfaces and dependencies

  • Platform repos used, by concern (docs/ECOSYSTEM.md §2.1): engine kits: Unity.Shared (profiles, settings, headless mode); shipping: the shared run menu. Installed players require Unity.Shared's stable package (MAU-T25).
  • Unity.Shared: --headless launch (Start-Headless.ps1).
  • MindAttic.Media.Capture: session recording.
  • MindAttic.Agency run menu and brochure generator: run.ps1 deploys to R:; the GitHub Page.
  • GridGame.Unity: only the rename coordination GGC-T52; nothing else is shared.
  • Nothing consumes TownWalker.

7. Release sequence

  1. MS-78 TownWalker traversal lab verdict (active, docs/RELEASE.md): E5 GGC-T42, E6 GGC-T43. Ends with the owner's sign-off on docs/COMPARISON.md.
  2. MS-139 TownWalker 1.0: the walking-town traversal prototype (planned): E7 GGC-T80, E8 GGC-T86, ending with polish and release GGC-T92. When it is reached, the product is finished.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from README, BIBLE, PLAN, code and the ticket history. MS-139 assumes the 2026-10-10 recommendation (Isometric + Route Map) wins the lab verdict; if the owner picks another style in MS-78, E8 is rewritten for it. MAT-T385
2026-11-30 MAT-T462 single-source pass: 1 renamed (renamed to capabilities (features named for an install path or an activity), summaries stripped of paths, scripts and class names), 0 buckets dissolved, 11 requires added (1 cross-repo to the Unity platform kits), 0 platform re-points (the game already uses the owner kits; links make the order explicit) MAT-T473
Part of TownWalker.
From TownWalker/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.