Skip to content

Commit 879a398

Browse files
author
DavidQ
committed
BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_CANVAS_STATUS_TEXT
Updated games/_template to keep the canonical shell/theme baseline while rendering template status text on the canvas. - preserved non-playable template shell - moved status messaging to canvas rendering - kept gameplay and assets out of _template
1 parent 60d8140 commit 879a398

11 files changed

Lines changed: 131 additions & 86 deletions

docs/dev/CODEX_COMMANDS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ MODEL: GPT-5.4
22
REASONING: high
33

44
COMMAND:
5-
Execute BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_BOOTSTRAP_ALIGNMENT exactly as written.
5+
Execute BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_CANVAS_STATUS_TEXT exactly as written.
66

77
Rules:
8-
- Source of truth is `games/Asteroids/index.html`
8+
- Keep the canonical shell/theme baseline alignment
99
- Modify `games/_template/index.html`
10-
- Add ONLY minimal direct shell/bootstrap/theme dependencies already proven by the canonical game shell
10+
- Render the required status text on the canvas, not as HTML status text
1111
- Keep `_template` non-playable and game-neutral
1212
- Do NOT copy Asteroids gameplay, assets, entities, levels, or flow
1313
- Do NOT modify `games/Asteroids`
1414
- Fail fast on ambiguity or gameplay dependency bleed
1515

1616
Package output to:
17-
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_BOOTSTRAP_ALIGNMENT_delta.zip
17+
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_CANVAS_STATUS_TEXT_delta.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_BOOTSTRAP_ALIGNMENT
1+
BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_CANVAS_STATUS_TEXT
22

3-
Aligned games/_template with the canonical engine/theme shell baseline.
3+
Updated games/_template to keep the canonical shell/theme baseline while rendering template status text on the canvas.
44

5-
- updated template index shell
6-
- added only minimal shared bootstrap/theme dependencies as needed
7-
- kept template non-playable and game-neutral
5+
- preserved non-playable template shell
6+
- moved status messaging to canvas rendering
7+
- kept gameplay and assets out of _template

docs/dev/NEXT_COMMAND.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Create APPLY_PR_GAMES_TEMPLATE_ENGINE_THEME_BOOTSTRAP_ALIGNMENT
1+
Create APPLY_PR_GAMES_TEMPLATE_ENGINE_THEME_CANVAS_STATUS_TEXT
22

33
Scope:
44
- accept template shell/theme alignment
5-
- confirm consistent view baseline
5+
- confirm required status text renders on canvas
66
- confirm no gameplay boot
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
Validation Checklist — Games Template Engine Theme Bootstrap Alignment
1+
Validation Checklist — Games Template Engine Theme Canvas Status Text
22

3-
[ ] games/_template/index.html shows consistent shell/theme baseline
3+
[ ] Consistent shell/theme baseline is present
44
[ ] Canvas is visible
5-
[ ] Template message visible
6-
[ ] No Asteroids gameplay boots
7-
[ ] No Asteroids-specific assets copied into _template
8-
[ ] Only minimal shell/bootstrap files added
5+
[ ] "HTML Says" renders on canvas
6+
[ ] "Template Status" renders on canvas
7+
[ ] "This template intentionally does not boot gameplay." renders on canvas
8+
[ ] Status text is not relied on as HTML body text
9+
[ ] No gameplay boots
910
[ ] No console errors
1011

1112
Status: PENDING
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# BUILD PR — Games Template Engine Theme Canvas Status Text
2+
3+
## Purpose
4+
Keep the minimal shared engine/theme bootstrap for `games/_template`, but require the status messaging to render on the canvas instead of as HTML text.
5+
6+
## Problem Statement
7+
The template needs the standard shell/theme baseline, but the visible status should be canvas-rendered so the entrypoint behaves like a proper game shell.
8+
9+
## Source Of Truth
10+
Use `games/Asteroids/index.html` only as the shell/theme/bootstrap reference.
11+
12+
Do NOT copy gameplay behavior.
13+
14+
## Scope (STRICT)
15+
- Modify `games/_template/index.html`
16+
- Modify only the direct minimal shell/bootstrap wiring needed to support canvas-rendered status text
17+
- Keep `_template` non-playable and game-neutral
18+
19+
## Target Files (EXACT)
20+
Primary target:
21+
- `games/_template/index.html`
22+
23+
Secondary allowed edits/additions:
24+
- only minimal direct shell/theme/bootstrap files already used by the canonical game shell, if required to preserve consistent view
25+
- no gameplay files
26+
- no assets
27+
- no entities, flow, levels, or rules
28+
29+
## Required Behavior
30+
`games/_template/index.html` MUST:
31+
- show the standard shell/theme baseline used by the canonical game shell
32+
- render a visible canvas
33+
- render the following text ON THE CANVAS, not as DOM/HTML status text:
34+
35+
HTML Says
36+
Template Status
37+
This template intentionally does not boot gameplay.
38+
39+
- not auto-boot gameplay
40+
- not load Asteroids-specific game logic
41+
- not depend on Asteroids-specific assets
42+
43+
## Allowed Operations
44+
- update `_template/index.html`
45+
- replace HTML status text with canvas-drawn status text
46+
- keep minimal shell/bootstrap/theme alignment
47+
- add only minimal direct non-game-specific support files if strictly required
48+
49+
## Explicit Non-Goals
50+
- DO NOT modify `games/Asteroids`
51+
- DO NOT copy Asteroids gameplay
52+
- DO NOT copy Asteroids assets
53+
- DO NOT add a new theming system
54+
- DO NOT expand beyond template shell/bootstrap alignment
55+
- DO NOT leave the required status text as plain HTML text
56+
57+
## Fail-Fast Conditions
58+
STOP with no changes if any of the following are true:
59+
- rendering the required text on canvas would require gameplay boot code
60+
- preserving the canonical shell/theme baseline would require copying Asteroids-specific gameplay files
61+
- more than minimal shell/bootstrap edits are required
62+
- any path outside the template shell/bootstrap scope must be changed
63+
64+
## Acceptance Criteria
65+
- `games/_template/index.html` shows the consistent shell/theme baseline
66+
- canvas is visible
67+
- the following text appears on the canvas:
68+
- `HTML Says`
69+
- `Template Status`
70+
- `This template intentionally does not boot gameplay.`
71+
- the same text is not relied on as HTML body content
72+
- no gameplay starts
73+
- no Asteroids-specific code or assets are copied into `_template`
74+
- no console errors
75+
76+
## Validation Steps
77+
1. Open `games/_template/index.html`
78+
2. Confirm the canonical shell/theme baseline is present
79+
3. Confirm a visible canvas is present
80+
4. Confirm the required three lines render on the canvas
81+
5. Confirm no gameplay starts
82+
6. Confirm no console errors
83+
84+
## Output Requirement
85+
Codex must package:
86+
`<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_ENGINE_THEME_CANVAS_STATUS_TEXT_delta.zip`

games/_template/docs/dev/codex_commands.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

games/_template/docs/dev/commit_comment.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

games/_template/docs/dev/next_command.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

games/_template/docs/dev/reports/validation_checklist.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

games/_template/docs/pr/BUILD_PR_GAMES_TEMPLATE_INDEX_CANVAS_FIX.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)