Isle-Slingers/js/levels/agents.md
Relay dc68c6e3dd Physics upgrade + repo modularization (RC-375D84)
Delivered by Hermies Qwen, gated and deployed by Relay.

- Board tip/topple: full continuous rotation when a board's center of
  mass passes its support edge (Q1: smooth pivot swing, no discrete
  snap). Falling boards deal impact damage and can kill enemies in
  their fall path.
- Falling-object impact damage: blocks and birds can now kill enemies
  from vertical drops and side plows (velocity-aware crush gate),
  chain momentum transfers correctly through stacks (mass-weighted
  contact), repeated impacts finish tougher enemies.
- Landed-bird physics: a bird resting on a board remains a real
  physical body under continuous gravity (Q2: no lifetime timer). If
  its platform is destroyed it falls, damages what it lands on
  (chain reaction), and can kill enemies.
- Repo modularized: folders = modules, subfolders = submodules,
  architecture.md + MODULES.md at root, an agents.md card in every
  module and submodule (17 total).
- Test suite grown from 27 to 47 (20 new RED-watched tests for the
  above behaviors), all green. Golden differential against the
  original core confirmed the only behavioral changes are the
  intended ones.

Live at http://10.244.136.121:8093/, independently re-verified by
Relay (full suite re-run, module structure check, headless Chromium
smoke) before this push.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-29 13:21:18 +00:00

860 B

js/levels/ — agents.md

RC-375D84 S-2. Module map: MODULES.md; runtime model: architecture.md.

The levels module (aggregator). Shared scope L.

  • index.js runs helpers first (constructors + SLING anchor), then one installer per level, and exports ISLE_LEVELS = { LEVELS, SLING } — key-for-key stable.
  • Level objects: id, name, birds[], sling, stars[3] (ascending), decor, blocks[] (centers! x,y = block CENTER), enemies[] (x,y = enemy center). The level-integrity test enforces world bounds, support (ground or flat block top) and non-decreasing enemy-HP difficulty — keep new levels honest.
  • Adding level 6+ = add data/level-6.js + register it in index.html AND in the aggregator's browser part-list expectation (order = difficulty order).
  • Do not import from physics; levels are pure data plus the constructor helpers.