Isle-Slingers/js/physics/constants/agents.md

16 lines
891 B
Markdown
Raw Normal View History

# js/physics/constants/ — agents.md
Part of the modularization pass. Module map: `MODULES.md`; runtime model: `architecture.md`.
Installs into `P`: WORLD, VIEW, MATERIALS, BIRD_TYPES, ENEMY_TYPES, GRAVITY,
LAUNCH_POWER, MAX_PULL, MIN_PULL, AIR_DRAG, BIRD_BOUNCE, BIRD_GROUND_FRICTION,
REST_SPEED, SETTLE_TIME, BIRD_MAX_AGE, ABILITY_CD, BIRD_BONUS.
- Leaf submodule: consumes nothing from `P` — it may be loaded first (and in the
browser it is).
- MATERIALS / BIRD_TYPES / ENEMY_TYPES are the **balance tables**: hp, dmgFactor,
density, speed, bonus. The balance spec (`test/balance.test.mjs`) pins the
per-material break budget and enemy kill budget — change a table value only
with a matching spec update and a watched RED->GREEN.
- WORLD.w / WORLD.ground (2400 x 900 surface) and VIEW (1280x720 design
resolution) are the spatial contract; render and camera assume them.