|
| 1 | +# BUILD PR — Asteroids New HTML Entrypoint |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Make `games/asteroids_new` actually launchable by adding the missing HTML entrypoint that matches the original Asteroids launch pattern. |
| 5 | + |
| 6 | +## Why This PR Exists |
| 7 | +Current evidence shows the repo launches Asteroids through HTML pages such as: |
| 8 | +- `games/Asteroids/index.html` |
| 9 | +- `games/Asteroids/capture-preview.html` |
| 10 | + |
| 11 | +The parallel `games/asteroids_new` lane has JS files, but no confirmed HTML entrypoint wired into that launch pattern. Without an HTML entry, the game code will not execute from the normal host flow. |
| 12 | + |
| 13 | +## Exact Target Files |
| 14 | +- `games/asteroids_new/index.html` |
| 15 | +- `games/asteroids_new/index.js` |
| 16 | + |
| 17 | +## Required Code Changes |
| 18 | +1. Create `games/asteroids_new/index.html` using the original Asteroids HTML launch pattern as the model. |
| 19 | +2. Wire the new HTML entrypoint to the existing `games/asteroids_new/index.js`. |
| 20 | +3. Update `games/asteroids_new/index.js` only as needed so it matches the HTML entry pattern. |
| 21 | +4. Keep the result minimal and launch-focused. |
| 22 | + |
| 23 | +## Hard Constraints |
| 24 | +- exact files only |
| 25 | +- do not modify any original `games/Asteroids/*` files |
| 26 | +- do not modify root `index.html` |
| 27 | +- do not modify `games/index.html` |
| 28 | +- do not widen into gameplay fixes, assets, debug UI redesign, or registry work |
| 29 | +- do not refactor unrelated logic |
| 30 | +- focus only on making `games/asteroids_new` reachable and executable through its own HTML page |
| 31 | + |
| 32 | +## Validation Steps |
| 33 | +- confirm only the exact target files changed |
| 34 | +- confirm `games/asteroids_new/index.html` loads `games/asteroids_new/index.js` |
| 35 | +- confirm opening `games/asteroids_new/index.html` produces visible execution or real runtime errors instead of silence |
| 36 | +- confirm no original `games/Asteroids/*` files changed |
| 37 | + |
| 38 | +## Acceptance Criteria |
| 39 | +- `games/asteroids_new/index.html` exists |
| 40 | +- it launches the parallel game entry |
| 41 | +- `games/asteroids_new` is now reachable through an HTML page |
| 42 | +- execution is visible or real runtime failures are exposed |
| 43 | +- original Asteroids files remain untouched |
0 commit comments