15 lines
860 B
Markdown
15 lines
860 B
Markdown
|
|
# 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.
|