The code moves into src/: index, server and the test harness keep the root
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c122745390
commit
1f636530b9
16 files changed
+16
-13
No files matched your search
+5
-4
@@ -29,7 +29,8 @@ the primary target.
|
||||
the Dockerfile. Oliver tests on his phone at splatter-tennis.wuwi.one ~30s after
|
||||
a push. **Bump `main.js?v=N` in index.html every time** or phones keep the old build.
|
||||
The Dockerfile must also COPY any new top-level file (it currently ships `index.html`,
|
||||
`manifest.webmanifest`, `*.js`, `server.py`, `assets/`).
|
||||
`manifest.webmanifest`, `server.py`, `src/`, `assets/` — `test.js` only feeds the test stage and
|
||||
is deliberately not in the served image).
|
||||
- **The image is `python:3.12-alpine` running `server.py`, no longer `nginx:alpine`.** The world
|
||||
board needs one process that can WRITE, and nginx is not one; everything the nginx conf did here
|
||||
(no-cache so a deploy lands on a plain reload, and `application/manifest+json`, without which
|
||||
@@ -51,7 +52,7 @@ the primary target.
|
||||
- **Oliver edits files himself** (tuning values, sometimes sprites). ALWAYS Read current file state
|
||||
before editing; never assume your last version is what is on disk.
|
||||
|
||||
## Module map (all in repo root)
|
||||
## Module map (game code in `src/`; `index.html`, `server.py` and `test.js` at the root)
|
||||
`config.js` TUNE (live T panel) + structural constants + `UI` palette · `state.js` the `G` object +
|
||||
P/O/ball/score + `setupPoint`/`sendBoy` · `gameplay.js` ballistics/swings/serve/rules/AI/`update()` +
|
||||
transition + `splatPoint` + ball-boy routines · `beats.js` **the beat machinery: every mode
|
||||
@@ -827,8 +828,8 @@ Clear the intro first: `document.getElementById('intro')?.remove()`.
|
||||
own geometry could possibly reach. To check WHERE something lands, recompute the projection
|
||||
directly (`T.proj(...)`) and compare numbers; keep pixel-diffing for "did anything at all change".
|
||||
- **The module-refresh list MUST include the VERSIONED entry point.** `index.html` loads
|
||||
`main.js?v=N`, and `fetch('main.js', {cache:'reload'})` does not bust that URL — so main.js alone
|
||||
stays stale through a reload while every other module is fresh. Read the src off the page:
|
||||
`src/main.js?v=N`, and `fetch('src/main.js', {cache:'reload'})` does not bust that URL — so main.js
|
||||
alone stays stale through a reload while every other module is fresh. Read the src off the page:
|
||||
`document.querySelector('script[type=module]').getAttribute('src')` and fetch that too. Symptom: a
|
||||
change in main.js appears to do nothing at all, repeatably.
|
||||
- **You MUST set `T.TUNE.autoAssist = 1.15` first** — the Browser pane reports `pointer: fine`, so
|
||||
|
||||
Reference in new issue
Block a user