Skip to content

Commit a104b0b

Browse files
author
DavidQ
committed
BUILD_PR_GAMES_TEMPLATE_INDEX_CANVAS_FIX
Fixed template index to render message on canvas only.
1 parent be8e4f8 commit a104b0b

5 files changed

Lines changed: 57 additions & 26 deletions

File tree

docs/dev/CODEX_COMMANDS.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ MODEL: GPT-5.3-codex
22
REASONING: high
33

44
COMMAND:
5-
Execute BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS_V2_INDEX_SHELL exactly.
5+
Execute BUILD_PR_GAMES_TEMPLATE_INDEX_CANVAS_FIX exactly.
66

7-
- Copy structure from games/Asteroids
8-
- Create games/_template
9-
- Replace index.html with template shell
10-
- Remove assets
11-
- Do NOT include Asteroids logic
7+
- Modify ONLY games/_template/index.html
8+
- Draw text on canvas
9+
- No DOM text
10+
- No other files
1211

13-
Package output to:
14-
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS_V2_INDEX_SHELL_delta.zip
12+
Package to:
13+
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_INDEX_CANVAS_FIX_delta.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS_V2_INDEX_SHELL
1+
BUILD_PR_GAMES_TEMPLATE_INDEX_CANVAS_FIX
22

3-
Created games/_template with standardized index shell.
4-
5-
- Canvas present
6-
- Template message displayed
7-
- No game logic included
3+
Fixed template index to render message on canvas only.

docs/dev/NEXT_COMMAND.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
Create APPLY_PR_GAMES_TEMPLATE_FROM_ASTEROIDS
2-
3-
Scope:
4-
- Accept template
5-
- Confirm shell behavior
1+
Create APPLY_PR_GAMES_TEMPLATE_INDEX_CANVAS_FIX
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
Validation Checklist — Template Index Shell
2-
3-
[ ] index.html renders canvas
4-
[ ] Template message visible
5-
[ ] No game logic runs
6-
[ ] No assets included
7-
1+
[ ] Canvas renders
2+
[ ] Text drawn on canvas
3+
[ ] No DOM text
4+
[ ] No console errors
85
Status: PENDING
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# BUILD PR — Games Template Index Canvas Fix
2+
3+
## Purpose
4+
Fix games/_template/index.html to render required message on canvas.
5+
6+
## Scope (STRICT)
7+
- Modify ONLY:
8+
games/_template/index.html
9+
10+
## Required Behavior
11+
- Render a canvas
12+
- Draw text ON canvas:
13+
14+
Game Template
15+
Replace this entrypoint with your game-specific shell.
16+
17+
- No DOM text fallback
18+
- No game logic
19+
- No asset loading
20+
21+
## Explicit Non-Goals
22+
- DO NOT modify any other file
23+
- DO NOT add new files
24+
- DO NOT introduce engine usage
25+
- DO NOT load Asteroids or any game code
26+
27+
## Fail-Fast
28+
- If change requires more than index.html → STOP
29+
30+
## Acceptance Criteria
31+
- Canvas visible
32+
- Text drawn on canvas
33+
- No console errors
34+
- No game loop runs
35+
36+
## Validation
37+
1. Open games/_template/index.html
38+
2. Confirm canvas renders
39+
3. Confirm text appears on canvas
40+
4. Confirm no game behavior
41+
42+
## Output
43+
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_INDEX_CANVAS_FIX_delta.zip

0 commit comments

Comments
 (0)