|
| 1 | +# BUILD PR — Asteroids New Debug Install + Keybindings |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Ensure debug system is actually installed and keybindings work: |
| 5 | + |
| 6 | +- Ctrl+Shift+` |
| 7 | +- Shift+` |
| 8 | + |
| 9 | +Currently debug is not active even though game runs. |
| 10 | + |
| 11 | +## Exact Target Files |
| 12 | +- `games/asteroids_new/index.html` |
| 13 | +- `games/asteroids_new/index.js` |
| 14 | +- `src/engine/debug/**` (READ ONLY for reference, do not modify) |
| 15 | +- `games/asteroids_new/debug/**` (only if wiring exists) |
| 16 | + |
| 17 | +## Required Code Changes |
| 18 | + |
| 19 | +1. Ensure debug system is initialized |
| 20 | + - locate how other working samples enable debug |
| 21 | + - replicate the same initialization pattern in asteroids_new |
| 22 | + |
| 23 | +2. Ensure debug host is attached to DOM |
| 24 | + - debug UI/container must be created and appended |
| 25 | + - must run after DOM is ready |
| 26 | + |
| 27 | +3. Ensure keybindings are registered |
| 28 | + - Ctrl+Shift+` → toggle debug |
| 29 | + - Shift+` → alternate debug view |
| 30 | + - verify event listeners are attached |
| 31 | + |
| 32 | +4. Verify correct import paths |
| 33 | + - debug modules must import from: |
| 34 | + `/src/engine/debug/...` |
| 35 | + - no relative path drift |
| 36 | + |
| 37 | +5. Do NOT modify debug engine implementation |
| 38 | + - only fix wiring/installation |
| 39 | + |
| 40 | +## Hard Constraints |
| 41 | +- no engine changes |
| 42 | +- no new debug system |
| 43 | +- no widening beyond asteroids_new wiring |
| 44 | +- minimal changes only |
| 45 | + |
| 46 | +## Validation Steps |
| 47 | +- load: games/asteroids_new/index.html |
| 48 | +- press Ctrl+Shift+` |
| 49 | +- press Shift+` |
| 50 | +- confirm debug UI appears |
| 51 | +- confirm no console errors |
| 52 | +- confirm gameplay unaffected |
| 53 | + |
| 54 | +## Acceptance Criteria |
| 55 | +- debug system is visible and toggleable |
| 56 | +- keybindings work |
| 57 | +- no engine modifications |
0 commit comments