Unity.Rea.Chain/SPEC
Unity.Rea.Chain — 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.mdsays which part of this the current milestone delivers.
1. Product definition
A product in docs/ECOSYSTEM.md (Games): a Unity.Rea faithful port; owner rule: fix bugs only, never change the gameplay. A faithful Unity 6 rebuild of the 2005 VB.NET / DirectX 9 Chain Game (itself a port of Philip Winston's 2000 Elastic Trail): a mouse-steered angel swings a spiked mace on a spring chain against a homing flock. It is for the owner and friends who want the original back, with online play on the shared kit. The finished product is the original, faithfully reproduced and bug-fixed in a deployed Windows Release player that the owner has played and signed off. Owner rule: resurrect the original faithfully, fix bugs only, never change the gameplay.
2. Scope boundary
2.1 In the product
- Every behaviour, key, screen, script command and asset of the original (RECONSTRUCTION.md: every row ported).
- Online host and join on the Unity.Multiplayer kit, with local play unchanged.
- The MindAttic Unity rebuild standard and Development and Release Windows players on
R:\MindAttic\Apps\Unity.Rea.Chain.
2.2 Never in the product
- Any change or improvement to gameplay, controls feel or content: the owner rule is resurrect the original faithfully and fix bugs only.
- The data-option spikes (1440 s day cycle, 16 x 9 arena fit, hang-back seek cap, chain wall bounce): each was judged worse than the original (BIBLE D6, §8.1, D18, V4); they stay data options, off by default, with no further work.
- Mobile, console or store builds: the product is an internal Windows player.
3. Users and roles
- Player: swings the chain alone or online, tunes it, uses the scripter.
- Owner: verifies the finished game by play and signs it off.
- Maintainer: keeps the rebuild standard, the docs and the deploy working.
4. Requirements
Status is built (closed ticket, with evidence) or MS-58, the active milestone and the finished product. Every built story's acceptance is the same: in the built player it behaves as RECONSTRUCTION.md records for the original, and its legacy story (named in brackets) is marked done in USER_STORIES.md.
E1. Chain combat — U.CHN-T131 — built
F1.1 Chain and flock — U.CHN-T132 — built
- S1.1.1 — U.CHN-T133 — built (U.CHN-US-G1). As a player, the chain and combat feel the same as the original, with each deliberate deviation recorded and chosen on purpose, so that gameplay is kept exactly.
- S1.1.2 — U.CHN-T134 — built (U.CHN-US-G2). As a player, 14 enemies come at me from the corners of the arena and return on restart, so that the fight matches the original.
- S1.1.3 — U.CHN-T135 — built (U.CHN-US-G3). As a player, enemies that overlap push each other apart instead of stacking into one blob, so that a crowd spreads out as in the original.
- S1.1.4 — U.CHN-T136 — built (U.CHN-US-G4). As a player, a heart floats down the screen and heals me when I touch it, so that I can recover as in the original.
- S1.1.5 — U.CHN-T137 — built (U.CHN-US-G5). As a player, when I die the light fades and the game restarts by itself, so that game over matches the original.
- S1.1.6 — U.CHN-T138 — built (U.CHN-US-G6). As a player, the arena light fades and the day cycle tints the scene, so that the lighting matches the original.
- S1.1.7 — U.CHN-T139 — built (U.CHN-US-G7). As a player, I can toggle the chain's follow-the-mouse force, so that I can watch it fall free as the original allowed.
- S1.1.8 — U.CHN-T140 — built (U.CHN-US-G8). As a player, I can reset the game with a key and the music restarts at a random point, so that a new round starts as in the original.
- S1.1.9 — U.CHN-T141 — built (U.CHN-US-G9). As a player, I can shake the screen, so that the original's shake key works.
E2. Original look, sound and HUD — U.CHN-T142 — built
F2.1 Art and audio — U.CHN-T143 — built
- S2.1.1 — U.CHN-T144 — built (U.CHN-US-A1). As a player, I see the original's art (angel with 4 flap frames per facing, chain link, mace and grappling mace, the seven Shadow enemy frames, the heart), so that the game looks like the original.
- S2.1.2 — U.CHN-T145 — built (U.CHN-US-A2). As a player, I hear the original's sound effects and music, so that the game sounds like the original.
- S2.1.3 — U.CHN-T146 — built (U.CHN-US-A3). As a player, the arena has the original's background and I can switch between the beach and the utopia areas, so that the scenery matches.
- S2.1.4 — U.CHN-T147 — built (U.CHN-US-A4). As a player, I can change the chain's links to coloured gems, so that I can dress the chain as the original allowed.
- S2.1.5 — U.CHN-T148 — built (U.CHN-US-A5). As a player, the mace can be dressed as a magnet, so that the README's promised magnet mace exists.
F2.2 HUD, menus and debug — U.CHN-T149 — built
- S2.2.1 — U.CHN-T150 — built (U.CHN-US-D1). As a player, the HUD shows what the original showed in the same places, so that the screen reads the same.
- S2.2.2 — U.CHN-T151 — built (U.CHN-US-D2). As a player, I can tune resistance, gravity and spring live and see them, so that the chain's feel can be changed as the original allowed.
- S2.2.3 — U.CHN-T152 — built (U.CHN-US-D3). As a player, I can speed up and slow down the game, so that the original's speed keys work.
- S2.2.4 — U.CHN-T153 — built (U.CHN-US-D4). As a player, the screen shows how long this round has lasted, so that the original's clock is there.
- S2.2.5 — U.CHN-T154 — built (U.CHN-US-D5). As a player, pause and quit work as in the original.
- S2.2.6 — U.CHN-T155 — built (U.CHN-US-D6). As a player, Tab opens the in-game menu panel, so that the original's menu is there.
- S2.2.7 — U.CHN-T156 — built (U.CHN-US-D7). As a developer, I can show the hit boxes and the render debug toggles, so that the original's debug views exist.
- S2.2.8 — U.CHN-T157 — built (U.CHN-US-D8). As a developer, I can move the camera with the numpad, so that the original's debug camera works.
- S2.2.9 — U.CHN-T158 — built (U.CHN-US-D9). As a player, a random loading picture shows while the game starts, so that start-up matches the original.
- S2.2.10 — U.CHN-T159 — built (U.CHN-US-D10). As a player, I can change resolution, window mode and the volumes in a settings screen, so that the original's configuration window exists.
E3. Scripter — U.CHN-T160 — built
F3.1 Scripts and console — U.CHN-T161 — built
- S3.1.1 — U.CHN-T162 — built (U.CHN-US-C1). As a player, I can type scripts that change the game, so that the original's scripting language exists.
- S3.1.2 — U.CHN-T163 — built (U.CHN-US-C2). As a player, I can open the scripter console and type commands into it, so that scripts can be entered as in the original.
E4. Foundation and online — U.CHN-T164 — built
F4.1 Rebuild standard — U.CHN-T165 — built
- S4.1.1 — U.CHN-T166 — built (U.CHN-US-F1). As a maintainer, I can read docs/BIBLE.md and the README to learn the game's rules, the architecture and every deliberate deviation from the original, so that the repo matches the shared standard.
- S4.1.2 — U.CHN-T167 — built (U.CHN-US-F2). As a maintainer, the game rules live in an engine-free Core assembly apart from the MonoBehaviour layer, so that they can be tested without Unity.
- S4.1.3 — U.CHN-T168 — built (U.CHN-US-F3). As a maintainer, I can run the Core tests with dotnet test outside Unity, so that rules are checked in seconds without opening the editor.
- S4.1.4 — U.CHN-T169 — built (U.CHN-US-F4). As a maintainer, game state changes only through commands that produce events, so that presentation only reads state and plays events and local play is the same path an online game will use.
- S4.1.5 — U.CHN-T170 — built (U.CHN-US-F5). As a designer, every tuning number and the level content come from data files validated on load, so that nothing is hard-coded in behaviour.
- S4.1.6 — U.CHN-T171 — built (U.CHN-US-F6). As a player, I steer and act through the Input System with rebindable actions and gamepad support, so that input is not hard-coded to device polling.
- S4.1.7 — U.CHN-T172 — built (U.CHN-US-F7). As a player, the game renders through URP 2D with committed pipeline settings, so that a fresh checkout looks the same and Unity does not rewrite the graphics settings on every import.
- S4.1.8 — U.CHN-T173 — built (U.CHN-US-F8). As a player, my volumes, mutes and display name persist in my profile, so that settings follow the shared MindAttic profile model.
- S4.1.9 — U.CHN-T174 — built (U.CHN-US-F9). As a player, the HUD and menus are built with UI Toolkit (or the shared MindAttic components) instead of IMGUI, so that the UI follows the modern Unity standard.
- S4.1.10 — U.CHN-T175 — built (U.CHN-US-F10). As a player, the game opens like the original: titled window, icon, 4:3 default size, hidden cursor, project metadata.
- S4.1.11 — U.CHN-T176 — built (U.CHN-US-F11). As a maintainer, I can build, test and deploy with one command each, so that done means verified from a script.
F4.2 Online and verification — U.CHN-T177 — built
- S4.2.1 — U.CHN-T178 — built (U.CHN-US-V1). As a player, I can host or join an online game on the shared Unity.Multiplayer kit, so that the game can be played online while local play is unchanged.
- S4.2.2 — U.CHN-T179 — built (U.CHN-US-V2). As the owner, I can see the finished game working end to end, so that done is verified by play.
- S4.2.3 — U.CHN-T180 — built (U.CHN-US-V3). As the owner, I can trust that nothing from the original is missing, so that the repo is a finished proof of concept.
E5. Faithful port — U.CHN-T120 — MS-58
Confirmed bugs fixed and a recorded Release play-through that matches the original.
F5.1 Faithful play without bugs — U.CHN-T121 — MS-58
- S5.1.1 Confirmed bugs fixed — U.CHN-T115 — MS-58. As a player, every confirmed bug against RECONSTRUCTION is fixed without changing gameplay. Acceptance: each fix names its RECONSTRUCTION row and a build passes.
F5.2 Release play-through — U.CHN-T122 — MS-58
- S5.2.1 Recorded Release run — U.CHN-T126 — MS-58. As the owner, the Release player is played start to finish (fly, swing, grapple and throw enemies, take hits, game over and auto-reset) and recorded in RECONSTRUCTION with a fix task per gap. Acceptance: RECONSTRUCTION records the run and no open gap.
E6. Windows release — U.CHN-T123 — MS-58
Players deployed on R:, the old C:\Apps players removed, and the owner's sign-off; the polish-and-release epic.
F6.1 Installed Windows players — U.CHN-T124 — MS-58
- S6.1.1 Debug and Release players deployed — U.CHN-T118 — MS-58. Acceptance:
run.ps1 -Redeployputs both players underR:\MindAttic\Apps\Unity.Rea.Chainand both launch. - S6.1.2 Old players removed — U.CHN-T119 — MS-58 (requires U.CHN-T118). Acceptance:
C:\Apps\Unity.Rea.ChainandC:\Apps\Unity.Chainare gone once the R: players run.
F6.2 Owner sign-off — U.CHN-T125 — MS-58
- S6.2.1 Owner plays the Release player — U.CHN-T127 — MS-58. OWNER ACTION: play it end to end. Acceptance: the owner signs off MS-58 or files what is wrong.
5. Non-functional requirements
- Windows 64-bit, Unity 6000.4, URP 2D with committed pipeline settings; 4:3 default window, hidden cursor.
- Core is engine-free C# tested with
dotnet test; tuning and level content are validated data. - Volumes, mutes and name live in the Unity.Shared profile; no secrets in the repo.
6. Interfaces and dependencies
- Platform repos used, by concern (
docs/ECOSYSTEM.md§2.1): engine kits: Unity.Shared (profiles, settings, headless mode) and Unity.Multiplayer (online host and join); shipping: the shared run menu. Installed players require Unity.Shared's stable package (MAU-T25); online play requires Unity.Multiplayer release 3 (UM-T98). - Uses Unity.Multiplayer (online host and join), Unity.Shared (profiles, launcher), MindAttic Components (UI), MindAttic.Media.Capture (screens), the shared run menu in MindAttic.Agency's deploy-lib.
- Source of truth: the original VB.NET Chain Game, recorded in RECONSTRUCTION.md and chain-physics.md. Nothing consumes it.
7. Release sequence
- MS-58 Unity.Rea.Chain faithful playable port (active): E5 Faithful port, E6 Windows release (its polish-and-release epic). Reaching it finishes the product.
8. Change log
| Date | Change to scope | Ticket |
|---|---|---|
| 2026-11-30 | Specification written from README, BIBLE, RECONSTRUCTION, the code and the ticket history; 40 built legacy stories filed as closed tickets | MAT-T379 |
| 2026-11-30 | MAT-T462 single-source pass: 2 renamed (renamed to capabilities (features named for an install path or an activity), summaries stripped of paths, scripts and class names), 0 buckets dissolved, 4 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 |