Jump to content

Unity.Rea.Hare/SPEC

From MindAttic Docs

Unity.Rea.Hare — 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): a Unity.Rea faithful port; owner rule: fix bugs only, never change the gameplay. A faithful Unity 6 rebuild of the GameMaker 8.1 arcade shoot-'em-up HARE (H.O.P., High Orbit Patrol): a robotic rabbit flies, perches and fights in low orbit over a drifting asteroid field, through a ten-level campaign, quick play and the enemy generator. It is for the owner and friends who want the original back. The finished product is the original, faithfully reproduced and bug-fixed in a deployed Windows Release player, and then the whole game running under one server authority on the Unity.Multiplayer kit so two players can fly a level together, while local play stays exactly the original (BIBLE UH-LAW-7 and its Online target; AGENTS.md rules 8 and 9).

2. Scope boundary

2.1 In the product

  • Every object, room, rule, enemy, weapon, sprite, sound and font of the original (RECONSTRUCTION.md).
  • The MindAttic Unity rebuild standard: engine-free Core, commands and events, every number in data, Input System with rebinding, Unity.Shared profiles, URP 2D, real UI.
  • Online play on the Unity.Multiplayer kit with one authority, beside an unchanged local game.
  • Development and Release Windows players on R:\MindAttic\Apps\Unity.Rea.Hare.

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 (plainly broken original code is fixed and recorded in the BIBLE).
  • New enemies, levels, weapons or modes beyond the original.
  • Mobile, console or store builds: the product is an internal Windows player.

3. Users and roles

  • Player: plays the campaign, quick play or the enemy generator, locally or online.
  • Owner: verifies parity by play and signs off each milestone.
  • Designer and maintainer: keep the data, the rebuild standard, the docs and the deploy working.

4. Requirements

Status is built (closed ticket, with evidence), MS-73 (active milestone) or MS-138 (planned, 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. Legacy U.HARE-US-M1 is the same boss as U.HARE-US-R3 and is carried by R3's ticket.

E1. Combat and flight — U.HARE-T149 — built

F1.1 Flight and survival — U.HARE-T150 — built

  • S1.1.1 — U.HARE-T151 — built (U.HARE-US-B1). As a player, I can fly obj_player's ship with thrust/rotate controls (boost, brake, leap) matching the original's alarm-driven state machine.
  • S1.1.2 — U.HARE-T152 — built (U.HARE-US-B2). As a player, I can take damage and die/respawn (player_hurt, reset_player) with the same health/lives rules as the GML original.
  • S1.1.3 — U.HARE-T153 — built (U.HARE-US-B3). As a player, I can raise a shield (player_shield/obj_shield/obj_shieldwall) that blocks incoming damage for a limited time.

F1.2 Perching rabbit — U.HARE-T154 — built

  • S1.2.1 — U.HARE-T155 — built (U.HARE-US-Q1). As a player, my rabbit lands on rocks and structures, crouches there, aims from the rock and leaps off to the next one, exactly as in the original.
  • S1.2.2 — U.HARE-T156 — built (U.HARE-US-Q2). As a player, I lose a life when I die or leave the arena, drop back in from the top of the screen, and the game restarts when my lives run out, like the original.
  • S1.2.3 — U.HARE-T157 — built (U.HARE-US-Q3). As a player, my rabbit looks and animates like the original: idle, crouch, leap and hurt poses, the weapon held at my aim, smoke and spark trails, and the flashing when invulnerable.
  • S1.2.4 — U.HARE-T158 — built (U.HARE-US-Q4). As a player, I find structures with their covers on the rocks of a level (and can land on them), as set by each level's structure range.
  • S1.2.5 — U.HARE-T159 — built (U.HARE-US-Q5). As a player, I see the original's backdrop props: the moon surface, floating debris and the water-surface reflection in the side-scroll stage.

F1.3 Air weapons — U.HARE-T160 — built

  • S1.3.1 — U.HARE-T161 — built (U.HARE-US-C1). As a player, I can fire the primary air weapon (vulcan) with spin-up/spin-down and a looping fire sound.
  • S1.3.2 — U.HARE-T162 — built (U.HARE-US-C2). As a player, I can fire a secondary air weapon (laser, railgun or rocket) and cycle between unlocked air weapons with next_air_weapon.
  • S1.3.3 — U.HARE-T163 — built (U.HARE-US-C3). As a player, I can fire the shotgun and flamethrower weapons with their own spread/cone behaviour.
  • S1.3.4 — U.HARE-T164 — built (U.HARE-US-C4). As a player, my ship carries its weapons in play: the vulcan, shotgun, flamer and mine launcher, the perched laser and railgun and the air rocket loadout are added to the player ship (prefab or scene) with their ground and air loadouts, so every weapon fires in the running game.

F1.4 Ground weapons — U.HARE-T165 — built

  • S1.4.1 — U.HARE-T166 — built (U.HARE-US-D1). As a player, I can fire a separate ground weapon loadout (mine, grenade) at surface targets, cycling with next_ground_weapon.
  • S1.4.2 — U.HARE-T167 — built (U.HARE-US-D2). As a player, ammo cost and resupply (set_ammo_cost, subtract_ground_ammo) work the same as the original for both air and ground loadouts.

F1.5 Enemies — U.HARE-T168 — built

  • S1.5.1 — U.HARE-T169 — built (U.HARE-US-E1). As a player, I fight flying insect-style enemies (butterfly, firefly, fly, dagger) driven by their original ai_* flight patterns.
  • S1.5.2 — U.HARE-T170 — built (U.HARE-US-E2). As a player, I fight the larger set-piece enemies (hydra, phalanx with phalanx_shield, meatball, wraith, sawblade, worm with segments/gibs, trilobyte, mimic with mimic_illusion).
  • S1.5.3 — U.HARE-T171 — built (U.HARE-US-E3). As a player, enemies spawn through the original emitter objects (obj_*_emitter) and generate_enemy_list so spawn pacing matches the source game.
  • S1.5.4 — U.HARE-T172 — built (U.HARE-US-E4). As a player, enemies die with the right gib/explosion/death-particle effects per enemy type (meatball_gib, worm_gib, rocket_explosion, death_particle).

F1.6 Boss and helpers — U.HARE-T173 — built

  • S1.6.1 — U.HARE-T174 — built (U.HARE-US-R1). As a player, I can call a helper hawk that flies with me, picks up my drops and dies to a hit, like the original's obj_helper.
  • S1.6.2 — U.HARE-T175 — built (U.HARE-US-R2). As a player, I can set off the flashbomb that flashes the screen and blows up the enemies and shots around me, like the original.
  • S1.6.3 — U.HARE-T176 — built (U.HARE-US-R3). As a player, I fight Scrap Mental, the level 8 boss that shoots, spawns saws and daggers and sheds its hull pieces, and I win the level by destroying it.

F1.7 Rocks and weather — U.HARE-T177 — built

  • S1.7.1 — U.HARE-T178 — built (U.HARE-US-F1). As a player, I navigate around destructible rocks (rock1-5, create_new_rock, move_rocks, rock_destroyed) that behave like the original's par_rock family.
  • S1.7.2 — U.HARE-T179 — built (U.HARE-US-F2). As a player, I see weather/ambient environment layers (clouds, rain, snow, sand, fog emitters) matching each room's backdrop.

F1.8 Pickups and upgrades — U.HARE-T180 — built

  • S1.8.1 — U.HARE-T181 — built (U.HARE-US-H1). As a player, I collect carrots, coins, chips and cartridges dropped by enemies/rocks (random_pickup, spawn_chips, obj_drop*) as the game's currency/ammo pickups.
  • S1.8.2 — U.HARE-T182 — built (U.HARE-US-H2). As a player, I spend currency in the upgrade/garage screen (room_upgrade, obj_upgrade, obj_upgrade_vulcan1, obj_upgrade_shotgun1, obj_upgrade_missle1, obj_rabbit_schematic) to improve my ship.

E2. Campaign and presentation — U.HARE-T183 — built

F2.1 Campaign and levels — U.HARE-T184 — built

  • S2.1.1 — U.HARE-T185 — built (U.HARE-US-G1). As a player, I can select a level from the overworld map (room_map, obj_map, obj_destination, obj_btn_level01-09) the way the original campaign does.
  • S2.1.2 — U.HARE-T186 — built (U.HARE-US-G2). As a player, each level (level_01..level_10, level_default, level_composition, level_objective, level_setting) loads its own enemy composition, objective and time limit.
  • S2.1.3 — U.HARE-T187 — built (U.HARE-US-G3). As a player, I play the side-scroll and shaft stage variants (room_sidescroll, room_shaft) in addition to the open gamescreen arena.
  • S2.1.4 — U.HARE-T188 — built (U.HARE-US-G4). As a player, finishing a level shows level_results and level-complete state (set_level_complete) before returning to the map.

F2.2 Game flow and rooms — U.HARE-T189 — built

  • S2.2.1 — U.HARE-T190 — built (U.HARE-US-O1). As a player, the game remembers my lives, coins, skill points, score, difficulty and place in the campaign through one game-session state, the same way the original's globals did.
  • S2.2.2 — U.HARE-T191 — built (U.HARE-US-O2). As a player, the game moves between its rooms (startup, title, intro, story, map, game, upgrade) with the original's fade transitions and Esc behaviour, so it flows like the original.
  • S2.2.3 — U.HARE-T192 — built (U.HARE-US-O3). As a player, I see the startup screen with the circuit-board backdrop and the controller note before the title, the way the original opens.
  • S2.2.4 — U.HARE-T193 — built (U.HARE-US-O4). As a player, I play in the original's open arena with a camera that follows my rabbit, scrolling backgrounds, wrap-around edges and a lost life when I fly out of bounds.
  • S2.2.5 — U.HARE-T194 — built (U.HARE-US-O5). As a player, each level starts with its name banner, its objective and its time limit, runs its enemy emitters, and ends when I have met the objective, like the original.
  • S2.2.6 — U.HARE-T195 — built (U.HARE-US-O6). As a player, I see my score, the level objective, the elapsed time, my extra lives and my health pips on screen while I play.
  • S2.2.7 — U.HARE-T196 — built (U.HARE-US-O7). As a player, I can pause, restart the level, toggle the minimap, units, volume and fullscreen with the original's keys.
  • S2.2.8 — U.HARE-T197 — built (U.HARE-US-O8). As a player, I aim with the original's blue reticle in the game and its pointer on menus.
  • S2.2.9 — U.HARE-T198 — built (U.HARE-US-O9). As a player, the title screen opens with the original's falling drop, the standing rabbit and the logo before the menu appears.
  • S2.2.10 — U.HARE-T199 — built (U.HARE-US-O10). As a player, the map looks like the original: the spinning earth, the scanner sweep, the USS Warren, mission alerts and the travel dot.
  • S2.2.11 — U.HARE-T200 — built (U.HARE-US-O11). As a player, I can start a quick game, the campaign or the enemy generator at a difficulty I choose, like the original's three game modes.
  • S2.2.12 — U.HARE-T201 — built (U.HARE-US-O12). As a player, my campaign progress, coins, skill points and purchased upgrades are saved to my profile and restored when I return.
  • S2.2.13 — U.HARE-T202 — built (U.HARE-US-O13). As a player, I can see who made the music and sound effects I hear, as the original's licences require.

F2.3 HUD and menus — U.HARE-T203 — built

  • S2.3.1 — U.HARE-T204 — built (U.HARE-US-I1). As a player, I see a HUD with health bar, energy bar, weapon GUI and speedometer during gameplay (obj_healthbar, obj_energybar, obj_weapon_gui, obj_speedometer).
  • S2.3.2 — U.HARE-T205 — built (U.HARE-US-I2). As a player, I navigate title and quit/confirm menus (obj_title, obj_btn_quickstart, obj_btn_campaign, obj_btn_quit, obj_yesno_dialog) with the same flow as the original.
  • S2.3.3 — U.HARE-T206 — built (U.HARE-US-I3). As a player, I see floating damage/pickup text and tips (obj_float_text, obj_tip, obj_alert) during play.

F2.4 Story scenes — U.HARE-T207 — built

  • S2.4.1 — U.HARE-T208 — built (U.HARE-US-J1). As a player, I read the intro and story scenes (room_intro, room_story, obj_conversation, obj_typewriter_story, load_scenario) with a typewriter-style text reveal.

F2.5 Music and sound — U.HARE-T209 — built

  • S2.5.1 — U.HARE-T210 — built (U.HARE-US-K1). As a player, I hear the original's music tracks with random selection between levels (play_random_music, obj_jukebox).
  • S2.5.2 — U.HARE-T211 — built (U.HARE-US-K2). As a player, I hear weapon and UI sound effects ported from the gmlHARE/gmlRabbit sound libraries (102-152 original sound assets).

F2.6 Visual effects — U.HARE-T212 — built

  • S2.6.1 — U.HARE-T213 — built (U.HARE-US-L1). As a player, I see muzzle flashes, explosions (oval_explosion, tinyexplosion, rocket_explosion, grenade_explosion) and trail/swirl effects (rail_swirl) matching each weapon.

F2.7 Original assets — U.HARE-T214 — built

  • S2.7.1 — U.HARE-T215 — built (U.HARE-US-P1). As a developer, the original's 214 sprites and 18 backgrounds are imported into Unity with their frames, origins, collision shapes and animation speeds, so the game can look like the original.
  • S2.7.2 — U.HARE-T216 — built (U.HARE-US-P2). As a developer, the original's sound effects and music are imported into Unity as audio clips with their mixer groups, so every sound can be played by name.
  • S2.7.3 — U.HARE-T217 — built (U.HARE-US-P3). As a developer, the original's fonts are available as Unity font assets, so text matches the original's weight and size.

E3. Rebuild foundation — U.HARE-T218 — built

F3.1 Project and reconstruction — U.HARE-T219 — built

  • S3.1.1 — U.HARE-T220 — built (U.HARE-US-A1). As a developer, I have a Unity project scaffolded under Unity.Hare with the folder layout (Scenes/Scripts/Prefabs/Art/Audio) the other MindAttic Unity games use, so the rebuild starts from a consistent baseline.
  • S3.1.2 — U.HARE-T221 — built (U.HARE-US-A2). As a developer, I have the reverse-engineering notes from gmlHARE/gmlRabbit (objects, scripts, rooms) captured in docs/ so the GML source of truth survives even if R:\ becomes unavailable.
  • S3.1.3 — U.HARE-T222 — built (U.HARE-US-A3). As a developer, I can import the existing Unity HARE proof-of-concept (Assets/Resources, Scripts/Player, Scripts/Weapon, Scripts/Rock) as a starting reference without being blocked by it.

F3.2 Rebuild standard — U.HARE-T223 — built

  • S3.2.1 — U.HARE-T224 — built (U.HARE-US-N1). As a developer, the project is split into separate Core, Runtime, Editor and Test assemblies with one-way references, and Core runs under plain dotnet test, so the rules can be tested without Unity.
  • S3.2.2 — U.HARE-T225 — built (U.HARE-US-N2). As a developer, the repo has a README and a BIBLE that say what the game is, how it is built and where it deliberately differs from the original, so any agent can pick it up.
  • S3.2.3 — U.HARE-T226 — built (U.HARE-US-N3). As a developer, the player's and weapons' rules live in the engine-free Core as commands that produce events, so presentation only reads state and plays events.
  • S3.2.4 — U.HARE-T227 — built (U.HARE-US-N4). As a developer, enemy behaviour, spawn pacing and generate_enemy_list live in the engine-free Core, so every enemy rule is tested outside Unity.
  • S3.2.5 — U.HARE-T228 — built (U.HARE-US-N5). As a developer, every tuning number and all content (levels, enemy ranges, weapon and enemy stats, text) live in validated data, so nothing is hard-coded in behaviour.
  • S3.2.6 — U.HARE-T229 — built (U.HARE-US-N6). As a player, all controls go through one Input System actions asset and can be rebound, so keyboard, mouse and a gamepad work the same way.
  • S3.2.7 — U.HARE-T230 — built (U.HARE-US-N7). As a player, my profile, volumes and campaign progress are kept the same way as in every other MindAttic game, so my settings follow me.
  • S3.2.8 — U.HARE-T231 — built (U.HARE-US-N8). As a developer, rendering goes through a thin pipeline-agnostic layer over URP 2D, so presentation code never touches pipeline types.
  • S3.2.9 — U.HARE-T232 — built (U.HARE-US-N9). As a developer, all screens are built from one UI foundation (UI Toolkit or the shared MindAttic components) with the original's look, so menus and HUD share a style.

F3.3 Verified Windows build — U.HARE-T233 — built

  • S3.3.1 — U.HARE-T234 — built (U.HARE-US-S1). As a developer, the game is verified by play: PlayMode tests and a scripted run drive the real game and capture screenshots of every room.
  • S3.3.2 — U.HARE-T235 — built (U.HARE-US-S2). As a player, I can install and launch a polished Windows build with the right name, icon, resolution and settings, so the proof of concept is complete.

E4. Faithful port — U.HARE-T138 — MS-73

Confirmed bugs fixed and a recorded Release play-through that matches the original.

F4.1 Faithful play without bugs — U.HARE-T139 — MS-73

  • S4.1.1 F1 during a rebinding — U.HARE-T123 — MS-73. As a player, pressing F1 (or any key bound to Fullscreen) while a binding listens rebinds it without toggling the window. Acceptance: given the Controls screen listening, when F1 is pressed, then the window mode is unchanged and F1 is bound.
  • S4.1.2 Confirmed bugs fixed — U.HARE-T133 — MS-73. As a player, every confirmed bug against RECONSTRUCTION is fixed without changing gameplay. Acceptance: each fix names its RECONSTRUCTION row and a build passes.

F4.2 Release play-through — U.HARE-T140 — MS-73

  • S4.2.1 Recorded Release run — U.HARE-T144 — MS-73. As the owner, the Release player is played from title through the campaign to game over or victory, recorded in RECONSTRUCTION with a fix task for each gap. Acceptance: RECONSTRUCTION records the run and no open gap.

E5. Windows release — U.HARE-T141 — MS-73

Players deployed on R: and the owner's sign-off; MS-73's polish-and-release epic.

F5.1 Installed Windows players — U.HARE-T142 — MS-73

  • S5.1.1 Debug and Release players deployed — U.HARE-T137 — MS-73. Acceptance: run.ps1 -Redeploy puts both players under R:\MindAttic\Apps\Unity.Rea.Hare and both launch.

F5.2 Owner sign-off — U.HARE-T143 — MS-73

  • S5.2.1 Owner plays the Release player — U.HARE-T145 — MS-73. OWNER ACTION: title, campaign through the levels, game over or victory. Acceptance: the owner signs off MS-73 or files what is wrong.

E6. Enemy tuning in data — U.HARE-T236 — MS-138

Finish the content-as-data law: every enemy kind's numbers live in EnemyCatalog, none in code.

F6.1 Enemy rules held in data — U.HARE-T237 — MS-138

  • S6.1.1 Every enemy number from data — U.HARE-T238 — MS-138. As a designer, each enemy kind's movement speeds, alarms and hit rules come from EnemyCatalog, validated on load. Acceptance: no enemy number is a literal in an *Enemy or *Body class, and every value equals the original's.

E7. The whole game online — U.HARE-T239 — MS-138

Weapons, health, the world, the boss and the session run under the one authority; local play unchanged. Stories run in order (each requires the one before).

F7.1 Combat online — U.HARE-T240 — MS-138

  • S7.1.1 Weapons online — U.HARE-T241 — MS-138. As an online player, my weapons, ammo and loadout cycling run on the server's SharedWorld through the Core commands local play sends. Acceptance: a client's shot is resolved on the server and drawn on every peer.
  • S7.1.2 Health and respawn online — U.HARE-T242 — MS-138. As an online player, damage, the shield, death, lives and respawn run on the authority per seat. Acceptance: a hit on a client's ship costs health on the server.

F7.2 World online — U.HARE-T243 — MS-138

  • S7.2.1 Rocks and structures online — U.HARE-T244 — MS-138. As an online player, the rock field, structures and perching are one shared world. Acceptance: two seats land on the same rock.
  • S7.2.2 Enemies and boss online — U.HARE-T245 — MS-138. As an online player, enemies, emitters, spawn pacing and Scrap Mental run once on the authority. Acceptance: both seats fight the same spawn wave.
  • S7.2.3 Drops and helpers online — U.HARE-T246 — MS-138. As an online player, drops, pickups, the helper hawk and the flashbomb work per seat. Acceptance: a pickup credits the seat that took it.

F7.3 Session online — U.HARE-T247 — MS-138

  • S7.3.1 Shared level session — U.HARE-T248 — MS-138. As online players, we start a campaign level together, share its objective and time limit, see the results and return to the map. Acceptance: both seats reach results.
  • S7.3.2 Server and bots play a level — U.HARE-T249 — MS-138. As the owner, the dedicated server with HareBot seats plays a full level headless. Acceptance: the harness reaches level results online.

F7.4 Polish and release — U.HARE-T250 — MS-138

  • S7.4.1 Docs and players current — U.HARE-T251 — MS-138. Acceptance: BIBLE, RECONSTRUCTION and overview describe the finished online game, and run.ps1 -Redeploy deploys both players with Online.unity.
  • S7.4.2 Owner plays online — U.HARE-T252 — MS-138. OWNER ACTION: two Release players play a campaign level together and local play still plays as the original. Acceptance: the owner signs off the finished product.

5. Non-functional requirements

  • Windows 64-bit, Unity 6000.4, URP 2D behind a pipeline-agnostic layer; Netcode on Unity Transport.
  • Core is engine-free C# tested with dotnet test; gameplay runs at the original's 120 steps per second.
  • Profiles, volumes, controls and campaign progress live in the Unity.Shared profile; no secrets in the repo.
  • Local play never loads a NetworkManager; online play is a separate scene beside it.

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 (net front end, authority, bots), Unity.Shared (profiles, settings, launcher), MindAttic Components (UI), MindAttic.Media.Capture (screens), the shared run menu in MindAttic.Agency's deploy-lib.
  • Source of truth: the original gmlHARE/gmlRabbit projects, recorded in RECONSTRUCTION.md. Nothing consumes it.

7. Release sequence

  1. MS-73 Unity.Rea.Hare faithful playable port (active): E4 Faithful port, E5 Windows release.
  2. MS-138 Unity.Rea.Hare online: the whole game under one authority (planned): E6 Enemy tuning in data, E7 The whole game online, ending with F7.4 Polish and release. Reaching it finishes the product.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from README, BIBLE, RECONSTRUCTION, AGENTS.md, the code and the ticket history; 66 built legacy stories filed as closed tickets; MS-138 planned from the BIBLE's Online target ("only flight is online so far") and the content-as-data partial row. The owner may confirm MS-138 MAT-T379
2026-11-30 MAT-T462 single-source pass: 4 renamed (renamed to capabilities (features named for an install path or an activity), summaries stripped of paths, scripts and class names), 0 buckets dissolved, 12 requires added (2 cross-repo to the Unity platform kits), 0 platform re-points (the game already uses the owner kits; links make the order explicit); U.HARE-T236 keeps a single feature on purpose: holding enemy rules in data is one capability MAT-T473
2026-11-30 MAT-T478 build order repaired: a prerequisite cycle (session needed world drops while combat needed the whole session) replaced by session (T248) -> combat (T240) -> world (T243) -> bots play a level (T249) MAT-T478
From Unity.Rea.Hare/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.