Removes internal process references so the repo is presentable to an outside audience: dropped the internal build-retrospective doc (process log with internal terms, not useful to an outside reader), and reworded remaining internal references in code comments and module docs (agents.md cards, architecture.md, MODULES.md, index.html, package.json) to generic descriptions of what changed and when, with no behavior change -- full 47/47 suite re-run green after the scrub, every edit verified comment/doc-only via diff. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
17 lines
958 B
Markdown
17 lines
958 B
Markdown
# js/app/ — agents.md
|
|
Part of the modularization pass. Module map: `MODULES.md`; runtime model: `architecture.md`.
|
|
|
|
Self-contained module — the page. Owns DOM, input, screens and the main loop.
|
|
|
|
- Reads `window.ISLE_CORE`, `ISLE_LEVELS`, `ISLE_RENDERER`, `ISLE_AUDIO`; writes
|
|
`window.ISLE_PAGE = { getState }` for tests.
|
|
- Fixed-timestep loop: rAF accumulator at 1/120 s feeding `ISLE_CORE.step`;
|
|
`pumpFrames` in the page test drives it.
|
|
- Pointer model: mousedown near the sling arms aim, mousemove drags, mouseup
|
|
calls `ISLE_CORE.launch` with `aimVector(...)`; tap mid-flight =
|
|
`triggerAbility`. The direction test (bug #15) asserts pulling back launches
|
|
TOWARD the fort.
|
|
- Screens: start / level-select / pause / win / lose; HUD (level, birds, score,
|
|
pause, mute). Level select unlocks by localStorage progress.
|
|
- Keep DOM touches in this file only — physics/levels/audio/render must stay
|
|
DOM-free so the headless suites keep working.
|