@@ -2,47 +2,50 @@ MODEL: GPT-5.4
22REASONING: high
33
44COMMAND:
5- Create ` BUILD_PR_LEVEL_10_19_REAL_IMPLEMENTATION_DELTA_FULLSCREEN_BEZEL_AND_BACKGROUND ` as a real implementation PR, not a docs-only PR.
6-
7- Assume these files already exist and are the correct conventions:
8- - ` games/Asteroids/assets/images/background.png `
9- - ` games/Asteroids/assets/images/bezel.png `
10-
11- Implement all of the following with actual runtime code changes:
12-
13- 1 . Add/use a dedicated ` backgroundImage ` class/module
14- - autodiscover ` games/<gameId>/assets/images/background.png `
15- - canvas-rendered
16- - draw immediately after clear
17- - draw before all world/gameplay content
18- - render ONLY during gameplay states
19- - do NOT render in attract/title/select-player/menu/non-gameplay states
20-
21- 2 . Add/use a dedicated ` fullscreenBezel ` class/module
22- - autodiscover ` games/<gameId>/assets/images/bezel.png `
23- - HTML/container level overlay above canvas
24- - only visible in fullscreen
25- - must be visibly on screen, not DOM-only
26- - verify/fix sizing, positioning, stacking context, host attachment, z-index, overflow, opacity, and fullscreen lifecycle wiring
27-
28- 3 . Add focused tests/validation covering:
29- - gameplay-only background gating
30- - background draw order after clear and before world render
31- - fullscreen bezel visibility on screen
32- - bezel hidden outside fullscreen
33- - no-op when files are missing
34-
35- 4 . REQUIRED OUTPUT CONTENT
36- The final ZIP MUST include actual changed implementation files.
37- Docs-only output is not acceptable.
38-
39- 5 . Final packaging step is REQUIRED
40- Package ALL changed files into this exact repo-structured ZIP:
41- ` <project folder>/tmp/BUILD_PR_LEVEL_10_19_REAL_IMPLEMENTATION_DELTA_FULLSCREEN_BEZEL_AND_BACKGROUND.zip `
5+ Create ` BUILD_PR_LEVEL_10_20_FIX_BEZEL_PATH_AND_BACKGROUND_DRAW_ORDER ` .
6+
7+ Implement the confirmed Asteroids runtime fixes:
8+
9+ 1 . Fix fullscreen bezel path duplication
10+ - current bad URL example:
11+ ` http://127.0.0.1:5500/games/Asteroids/games/Asteroids/assets/images/bezel.png `
12+ - normalize asset path resolution so bezel resolves once to:
13+ ` games/Asteroids/assets/images/bezel.png `
14+
15+ 2 . Preserve canvas layout
16+ - do NOT resize the canvas
17+ - do NOT stretch the canvas to the viewport
18+ - keep canvas centered
19+ - preserve intended game W x H dimensions
20+
21+ 3 . Fix background rendering
22+ - keep ` backgroundImage ` as a separate class/module from ` fullscreenBezel `
23+ - draw ` backgroundImage ` only during gameplay states
24+ - draw it immediately after clear
25+ - draw it before starfield and before all other world/gameplay content
26+ - inspect Asteroids render order and fix any layer that currently hides the background
27+
28+ 4 . Keep bezel as HTML overlay
29+ - keep ` fullscreenBezel ` as a separate HTML/container-level overlay
30+ - only show it in fullscreen
31+ - ensure it is visibly on screen, not just present in the DOM
32+
33+ 5 . Validate
34+ - bezel URL/path not duplicated
35+ - bezel visible in fullscreen
36+ - canvas size unchanged
37+ - canvas centered
38+ - background visible during gameplay
39+ - background absent in non-gameplay states
40+ - starfield no longer hides background incorrectly
41+
42+ 6 . Final packaging step is REQUIRED
43+ - package ALL changed files into this exact repo-structured ZIP:
44+ ` <project folder>/tmp/BUILD_PR_LEVEL_10_20_FIX_BEZEL_PATH_AND_BACKGROUND_DRAW_ORDER.zip `
4245
4346Hard rules:
44- - do real implementation work
45- - include changed source files in the ZIP
46- - no docs-only completion
47+ - write implementation code only through Codex
48+ - include changed implementation files in Codex ZIP
49+ - no docs-only completion by Codex
4750- no missing ZIP
4851- no unrelated repo changes
0 commit comments