Unity.Rea.QuickDuel
Unity.Rea.QuickDuel
Two duelists face each other and wait. The moment comes. Whoever strikes first wins.
That's the whole game:
- A "Get Ready" beat and a 3-2-1 countdown.
- A standoff of unknown length (3 to 6.5 seconds).
- The cue: the screen flashes and a blade is drawn.
- Both players hit their key. The faster reaction wins.
- Strike before the cue and you lose.
Status: complete. Every row of docs/RECONSTRUCTION.md is built or dropped on purpose, and the final play-through (UQD-T54, evidence in docs/parity) is done: this is a finished proof of concept of Bushido Coda's reaction duel.
Scope
The complete product, every epic, feature and story built or still to come, is written down in SPEC.md: the faithful port is built, MS-41 (the current finish line in RELEASE.md) deploys and signs it off, and MS-130 proves its online mode between two machines, which finishes the product. Changes to gameplay are never in scope: fix bugs only.
Layout
| Path | What |
|---|---|
Assets/Unity.Rea.QuickDuel/Core
|
Engine-free rules (Duel, DuelJudge, Match, MatchSession, AiOpponent, the online host and client)
|
Assets/Unity.Rea.QuickDuel/Core/Settings
|
The settings registry: TuningRegistry (named profiles) read from StreamingAssets/Settings/tuning.json, validated on load
|
Assets/Unity.Rea.QuickDuel/Core/Content
|
The original's asset manifest and the engine-free numbers of every visual (arena and fighter draws, fades, clock, ambient effects, intro, menu, verdict) |
Assets/Unity.Rea.QuickDuel/Runtime
|
The MonoBehaviours that draw and drive the three scenes (UI Toolkit, Input System, audio, GameWindow, KatanaCursor)
|
Assets/Unity.Rea.QuickDuel/Online
|
Online PvP over Unity.Multiplayer (OnlineDuel, lobby, Host / Join menu); compiles only with the package present
|
Assets/Unity.Rea.QuickDuel/Editor
|
Generators: the scene builders, the build (QuickDuelBuild), the icon and URP builders, and the art pipeline (OriginalAssetGenerator)
|
Assets/Unity.Rea.QuickDuel/Art, Audio, Fonts, Data
|
The original's art, sound and fonts and the generated manifest (Data/assets.json); written by the art pipeline, never hand-edited
|
Assets/Scenes
|
Intro, MainMenu and Duel, the three parity scenes, generated by the Editor builders
|
Assets/Unity.Rea.QuickDuel/Tests
|
Unity tests: Editor (EditMode), PlayMode (including the parity scene tests) and Online
|
Tests/Core.Tests
|
NUnit tests for Core, run outside Unity |
docs/BIBLE.md
|
Game design: what the game is and isn't, the round, judging, the scenes and the project laws |
docs/ORIGINS.md
|
Where the idea comes from: Samurai Kirby, then the old Bushido Coda builds |
docs/RECONSTRUCTION.md
|
Reverse-engineering of the original, the parity table and the ordered build plan |
docs/screenshots
|
parity-*.png: each scene as the parity tests draw it
|
The art pipeline
The original's sprites, sounds and fonts are not edited in Unity. In the editor, QuickDuel > Import Original Assets (or -executeMethod Unity.Rea.QuickDuel.EditorTools.OriginalAssetGenerator.Generate in batch mode) copies them from the GameMaker project, applies the import rules, builds the bitmap fonts and writes Data/assets.json. Scenes are built the same way (QuickDuel > Rebuild Duel / Intro / Main Menu Scene); never hand-edit the scene YAML.
Build and test
Open the folder in Unity 6000.4.3f1. Test the rules without the editor:
dotnet test Core.slnx
The rest of the tests run in Unity's Test Runner: EditMode (Tests/Editor: scene builders, art generators, settings registry) and PlayMode (Tests/PlayMode and Tests/Online, including ParitySceneTests, which draws each scene and checks it holds a real picture; set QUICKDUEL_SHOTS to save parity-*.png). A PlayMode run needs a graphics device; set QUICKDUEL_ALLOW_NO_GRAPHICS=1 to skip the drawn-scene tests on a machine without one. CI runs the Core suite on every push and, when the Unity license secrets are set, the EditMode and PlayMode suites and the Windows build.
Build the Windows player to Build/QuickDuel/QuickDuel.exe (exits non-zero on failure):
powershell -File tools/build.ps1
Launch a playable build for development (builds it first if Build/QuickDuel/QuickDuel.exe is missing; -Build rebuilds, -Wait waits for it to exit, the log goes to Logs/play.log):
powershell -File play.ps1
Headless launches
powershell -File play.ps1 -Headless runs the built player with no window for scripted testing (UQD-T97): it goes through ..\Unity.Shared\tools\Start-Headless.ps1 (--headless -batchmode -nographics: muted, in the background) and waits for the MINDATTIC_HEADLESS_READY line in Logs/play.log. With the flag on, the game skips the intro and presses New Game on the main menu, so it lands in a normal duel against the computer; without it nothing changes. The player keeps running afterwards; stop it yourself. See Unity.Shared's README, "Headless mode".
Muted launches
play.ps1 launches muted: it sets MINDATTIC_CLI_MUTED=1 and passes -muted, so a CLI or agent starting the game never blasts audio. Pass -Sound to launch with audio. Either switch works on its own when you start QuickDuel.exe (or the editor) yourself:
$env:MINDATTIC_CLI_MUTED = '1'; .\Build\QuickDuel\QuickDuel.exe .\Build\QuickDuel\QuickDuel.exe -muted
The mute is the shared com.mindattic.unity.shared session mute: read before the first scene loads, it makes the player profile's settings report sound muted for that run only, and SessionAudio silences the listener. The player's saved settings.json is never written, so the next normal launch has sound. A profile whose own settings mute sound effects is honoured the same way; otherwise the game plays at the profile's sound-effect volume, the one a player keeps across every MindAttic game. The -batchmode runs in tools/build.ps1 and the tests play nothing audible and don't need it.
Controls
The game opens on the intro (click, key or pad button skips it), then the main menu: New Game (vs computer), Versus (two players), Credits and Quit, with the computer's difficulty in the Options slot. Mouse, arrows or d-pad and Enter drive it.
In a duel: each round's countdown begins by itself 3 s after the loading image clears, as the original's startup did; a click (or a gamepad's south button) begins it at once. The original's keys strike: against the computer Space or the left mouse button (or touch); in Versus Left Ctrl for the left fighter and Right Ctrl for the right. Gamepad 1's south button strikes for the left fighter and gamepad 2's for the right. The mode (Versus, or the computer at Easy, Normal or Hard, playing the right side) is chosen on the main menu. A match is best of 3, then Retry or Continue. Everywhere: F1 toggles fullscreen (the 640 x 480 frame letterboxes into any window). In the duel, Escape, or gamepad Select held while pressing Start, leaves for the main menu at any moment (not under the victory or game over screen); on the main menu Escape quits the player. F12 shows the debug overlay in the editor and development builds.
Rounds are judged by input event timestamps, not by frame, so the frame rate can't decide a duel.
Pages in this repository
- Unity.Rea.QuickDuel — Project Bible — Status legend: ✅ done (verified by a test/build) · 🟡 partial · ⬜ planned · living.
- Origins — The original inspiration is Samurai Kirby, a sub-game in Kirby Super Star (SNES, 1996): https://kirby.fandom.com/wiki/Samurai_Kirby. Two…
- Unity.Rea.QuickDuel - Reconstruction (REA of the original) — Disposition key: built (in the rebuild), missing (a ticket builds it), dropped (deliberately not rebuilt, with the reason).
- Unity.Rea.QuickDuel — Release charter — A Unity 6 reaction duel rebuilt from the core of Ryan's Bushido Coda (GameMaker 2013): two duelists wait through an unreadable standoff…
- Unity.Rea.QuickDuel — Product specification — A product in docs/ECOSYSTEM.md (Games): a Unity.Rea faithful port; owner rule: fix bugs only, never change the gameplay. A Unity 6…