Jump to content

MindPuck.Unreal/BIBLE

From MindAttic Docs

MindPuck.Unreal — Project Bible

Single source of truth for what MindPuck.Unreal IS, is NOT, and the rules that keep it coherent. README says how to build and run it; the rules themselves are in MindPuck.Web's docs/DESIGN.md; the finish line lives in docs/RELEASE.md.

1. The one sentence

The Unreal Engine 5.8 port of MindPuck: the same gaze-driven puck game, rules ported one file for one file from MindPuck.Web's TypeScript core to plain C++.

2. The product promise

  • The same three control schemes (magnetic, steer, repulsor; F1 or Tab), the same solver-proven levels; pars matched the web for seed 12345, levels 1 to 12, in all three schemes (2026-11-19).
  • Gaze from MindAttic.Webcam through the MindAtticEyeTracker plugin; the mouse stands in when no tracker is connected.
  • No authored assets: everything on screen is built at runtime from C++.

3. What it is NOT

  • Not the canonical game: MindPuck.Web is. This port is frozen and takes no new features.
  • Not a content project: no Content/ folder, .uasset, .umap, Blueprint or UMG.

4. Architecture canon

 tracker page --> Webcam bridge (ws://localhost:8787/gaze) --> MindAtticEyeTracker plugin --> AMindPuckGameMode
                                                                       Source/MindPuck/Core (rules, no engine types)

4.1 Modules

Path Role
Source/MindPuck/Core/ Port of MindPuck.Web/src/core (namespace MindPuck)
Source/MindPuck/Game/ MindPuckGameMode, MindPuckTable, MindPuckMesh, MindPuckPawn, MindPuckHUD
Source/MindPuck/Tests/ Automation tests MindPuck.Core.*, MindPuck.Game.*
run.ps1 Build and play (-BuildOnly, -Editor, -SkipBuild, -Extra)

4.2 Domain model

Same as MindPuck.Web: table 16 x 9 (1 unit = 100 UU; table x = world +Y, table y = world -X), FLevel, EGazeMode, FPuckSim.

4.3 Key services

FPuckSim::Advance / AdvanceWith, GenerateLevel, SolveLevel, AMindPuckGameMode::AnchorSteer, -DumpLevels for parity checks against node tools/levels.mjs on the web.

5. The Laws

Inherits MindAttic.HouseRules.md by reference.

  1. No authored assets.
  2. The core is a port, not a design. Same constants, same draw order (each rng() taken into a local first), strict IEEE (FPSemantics = Precise).
  3. Frozen. Rule changes land in MindPuck.Web first and are ported only on the owner's request.
  4. The gaze plugin lives in MindAttic.Webcam, loaded via AdditionalPluginDirectories.
  5. Check work by building (run.ps1 -BuildOnly); tests only when the owner asks.

6. Verified state

  • Port with runtime-built table and gaze plugin (MIN-T2, fb75787); magnetic (MIN-T3), steer (MIN-T4), steer anchoring (MIN-T5, 83853a4).
  • 5/5 automation tests green on 2026-11-20 (MS-1 check 2).

7. Active frontier

docs/RELEASE.md: shared milestone MS-1; this repo's part is the frozen port on the run menu.

8. Quality bar

run.ps1 -BuildOnly is clean and -DumpLevels still matches the web for the same seed.

9. Glossary

See MindPuck.Web docs/BIBLE.md §9 (par, hold, steer anchor, bridge).

From MindPuck.Unreal/docs/BIBLE.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.