Skip to content

Commit 1590a4d

Browse files
author
DavidQ
committed
BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS
Created games/_template from Asteroids structure. - Structure preserved - Game-specific assets removed - No source modification
1 parent d119bb0 commit 1590a4d

38 files changed

Lines changed: 243 additions & 52 deletions

docs/dev/CODEX_COMMANDS.md

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

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

7-
- Copy ONLY from games/asteroids_new/**
8-
- Copy TO games/Asteroids/**
9-
- Do NOT reverse direction
10-
- Do NOT modify source
11-
- Fail fast if destination not empty
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
1212

1313
Package output to:
14-
<project folder>/tmp/BUILD_PR_GAMES_ASTEROIDS_COPY_FROM_ASTEROIDS_NEW_delta.zip
14+
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS_V2_INDEX_SHELL_delta.zip

docs/dev/COMMIT_COMMENT.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
BUILD_PR_GAMES_ASTEROIDS_COPY_FROM_ASTEROIDS_NEW
1+
BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS_V2_INDEX_SHELL
22

3-
Copied asteroids_new into games/Asteroids as canonical implementation.
3+
Created games/_template with standardized index shell.
44

5-
Exact mirror copy.
6-
No source modification.
5+
- Canvas present
6+
- Template message displayed
7+
- No game logic included

docs/dev/NEXT_COMMAND.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Create APPLY_PR_GAMES_ASTEROIDS_CANONICAL_SWAP
1+
Create APPLY_PR_GAMES_TEMPLATE_FROM_ASTEROIDS
22

33
Scope:
4-
- Accept canonical replacement
5-
- Confirm validation
4+
- Accept template
5+
- Confirm shell behavior
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Validation Checklist — Copy From asteroids_new
1+
Validation Checklist — Template Index Shell
22

3-
[ ] Destination matches source exactly
4-
[ ] File count identical
5-
[ ] No extra files
3+
[ ] index.html renders canvas
4+
[ ] Template message visible
5+
[ ] No game logic runs
6+
[ ] No assets included
67

78
Status: PENDING
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# BUILD PR — Games Template From Asteroids
2+
3+
## Purpose
4+
Create games/_template based on the canonical structure of games/Asteroids.
5+
6+
## Scope (STRICT)
7+
- Copy STRUCTURE ONLY from:
8+
games/Asteroids/**
9+
- Into:
10+
games/_template/**
11+
12+
## Target Paths (EXACT)
13+
- Source: games/Asteroids/**
14+
- Destination: games/_template/**
15+
16+
## Allowed Operations
17+
- Copy folder structure
18+
- Copy minimal files required to define structure
19+
20+
## Required Adjustments
21+
- Remove game-specific assets (images, sounds, levels)
22+
- Replace game-specific logic with placeholders where obvious
23+
- Keep flow structure intact
24+
25+
## Explicit Non-Goals
26+
- DO NOT modify games/Asteroids
27+
- DO NOT introduce new architecture
28+
- DO NOT refactor engine/shared
29+
- DO NOT over-generalize
30+
31+
## Fail-Fast Conditions
32+
- If unclear what is structural vs game-specific → STOP
33+
- If more than minimal edits required → STOP
34+
35+
## Acceptance Criteria
36+
- games/_template exists
37+
- Structure matches Asteroids layout
38+
- No game-specific assets included
39+
- Flow files present (attract, game, etc. if applicable)
40+
41+
## Validation Steps
42+
1. Compare folder structure
43+
2. Confirm no assets copied
44+
3. Confirm template is clean and reusable
45+
46+
## Output Requirement
47+
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS_delta.zip
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# BUILD PR — Games Template From Asteroids (Index Shell Fix)
2+
3+
## Purpose
4+
Create games/_template based on games/Asteroids, with a REQUIRED standardized index.html shell.
5+
6+
## Scope (STRICT)
7+
- Copy STRUCTURE from:
8+
games/Asteroids/**
9+
- Into:
10+
games/_template/**
11+
- Replace index.html with a template shell
12+
13+
## Target Paths (EXACT)
14+
- Source: games/Asteroids/**
15+
- Destination: games/_template/index.html
16+
17+
## REQUIRED index.html Behavior
18+
The template index.html MUST:
19+
- Render a canvas element
20+
- Display visible text:
21+
22+
Game Template
23+
Replace this entrypoint with your game-specific shell.
24+
25+
- Not include Asteroids-specific logic
26+
- Not auto-load Asteroids code
27+
28+
## Allowed Operations
29+
- Copy structure
30+
- Replace index.html content
31+
- Remove assets
32+
33+
## Explicit Non-Goals
34+
- DO NOT modify games/Asteroids
35+
- DO NOT include game-specific assets
36+
- DO NOT include game-specific logic
37+
38+
## Fail-Fast Conditions
39+
- If index.html cannot be safely replaced → STOP
40+
- If structure unclear → STOP
41+
42+
## Acceptance Criteria
43+
- games/_template exists
44+
- index.html shows canvas + template message
45+
- No Asteroids logic present
46+
- No assets copied
47+
48+
## Validation Steps
49+
1. Open games/_template/index.html
50+
2. Confirm:
51+
- canvas renders
52+
- message visible
53+
- no game runs
54+
55+
## Output Requirement
56+
<project folder>/tmp/BUILD_PR_GAMES_TEMPLATE_FROM_ASTEROIDS_V2_INDEX_SHELL_delta.zip

games/_template/README.md

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

games/_template/assets/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


games/_template/config/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const TEMPLATE_PLACEHOLDER = Object.freeze({
2+
file: "debug/asteroidsShowcaseDebug.js",
3+
note: "Replace with game-specific implementation."
4+
});
5+
6+
export default TEMPLATE_PLACEHOLDER;

0 commit comments

Comments
 (0)