|
| 1 | +# BUILD PR — Games Template Engine Theme Bootstrap Alignment |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Add the minimum shared engine/theme bootstrap required so `games/_template` presents the same consistent shell/theme view standard as canonical games after copy. |
| 5 | + |
| 6 | +## Problem Statement |
| 7 | +`games/_template` is structurally correct, but its current `index.html` is too isolated and does not establish the standard engine/theme view baseline. |
| 8 | + |
| 9 | +This PR is ONLY to align the template shell with the existing canonical view/bootstrap pattern. |
| 10 | + |
| 11 | +## Source Of Truth |
| 12 | +Use `games/Asteroids/index.html` as the visual/bootstrap reference. |
| 13 | + |
| 14 | +Only copy/adapt the minimum non-game-specific bootstrap needed to reproduce the standard shell/theme setup. |
| 15 | + |
| 16 | +## Scope (STRICT) |
| 17 | +- Update `games/_template/index.html` |
| 18 | +- Add ONLY the minimal non-game-specific files directly required by that shell/theme bootstrap |
| 19 | +- Reuse existing shared/engine/theme bootstrap already proven by canonical game wiring |
| 20 | +- Keep `_template` non-playable and game-neutral |
| 21 | + |
| 22 | +## Target Files (EXACT) |
| 23 | +Primary edit: |
| 24 | +- `games/_template/index.html` |
| 25 | + |
| 26 | +Secondary allowed additions: |
| 27 | +- only existing shared/bootstrap/theme files that are directly required by the new `_template/index.html` |
| 28 | +- only under paths already used by canonical game bootstrap |
| 29 | +- no new architecture files |
| 30 | +- no new engine subsystems |
| 31 | + |
| 32 | +## Required Behavior |
| 33 | +`games/_template/index.html` MUST: |
| 34 | +- render a visible canvas |
| 35 | +- present the consistent engine/theme view baseline used by the canonical game shell |
| 36 | +- draw or display this required template message in the shell view: |
| 37 | + |
| 38 | + Game Template |
| 39 | + Replace this entrypoint with your game-specific shell. |
| 40 | + |
| 41 | +- remain non-playable |
| 42 | +- not auto-boot gameplay |
| 43 | +- not load Asteroids-specific entities, rules, levels, assets, or game flow |
| 44 | + |
| 45 | +## Allowed Operations |
| 46 | +- inspect `games/Asteroids/index.html` and its direct non-game-specific shell/bootstrap dependencies |
| 47 | +- reuse/copy minimal shell/bootstrap/theme dependencies needed for consistent view |
| 48 | +- update `_template/index.html` to use those dependencies |
| 49 | +- keep placeholders and `.gitkeep` skeleton structure intact |
| 50 | + |
| 51 | +## Explicit Non-Goals |
| 52 | +- DO NOT modify `games/Asteroids` |
| 53 | +- DO NOT copy Asteroids gameplay code |
| 54 | +- DO NOT copy Asteroids assets |
| 55 | +- DO NOT copy Asteroids flow/level/entity/rules implementation |
| 56 | +- DO NOT refactor engine/shared broadly |
| 57 | +- DO NOT introduce a new theming system |
| 58 | +- DO NOT make `_template` runnable as a game |
| 59 | + |
| 60 | +## Fail-Fast Conditions |
| 61 | +STOP with no changes if any of the following are true: |
| 62 | +- the required consistent shell/theme view cannot be obtained without copying game-specific Asteroids code |
| 63 | +- the bootstrap dependency chain expands beyond direct shell/theme setup into gameplay/runtime systems |
| 64 | +- more than one ambiguous bootstrap path exists and no single canonical path is already proven by `games/Asteroids/index.html` |
| 65 | +- achieving the consistent shell requires repo-wide cleanup or restructuring |
| 66 | + |
| 67 | +## Acceptance Criteria |
| 68 | +- `games/_template/index.html` shows the standard consistent shell/theme view baseline |
| 69 | +- template message is visible: |
| 70 | + - `Game Template` |
| 71 | + - `Replace this entrypoint with your game-specific shell.` |
| 72 | +- canvas is visible |
| 73 | +- no Asteroids gameplay boots |
| 74 | +- no Asteroids-specific assets or game logic are present in `_template` |
| 75 | +- changes remain minimal and limited to shell/bootstrap alignment |
| 76 | + |
| 77 | +## Validation Steps |
| 78 | +1. Open `games/Asteroids/index.html` and note the canonical shell/theme baseline |
| 79 | +2. Open `games/_template/index.html` |
| 80 | +3. Confirm: |
| 81 | + - canvas visible |
| 82 | + - consistent shell/theme view is present |
| 83 | + - required template message is visible |
| 84 | + - no gameplay starts |
| 85 | + - no console errors |
| 86 | +4. Confirm only minimal bootstrap/theme files were added, if any |
| 87 | + |
| 88 | +## Output Requirement |
| 89 | +Codex must package: |
| 90 | +`<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_BOOTSTRAP_ALIGNMENT_delta.zip` |
0 commit comments