Log inGet started
World

Deep Field

Branchmain
Branchesmain
Commit97b82cdc4f

README.md

DfLure

The lamp on the end of the line — the one physical object the player owns. It sits on df_lure_rig and takes the two numbers the session writes, Core.state.depth and Core.state.brightness, and makes them a thing hanging in water.

It reads no input. The control scheme belongs to DeepFieldGame, which writes targetDepth and brightness; this is what those two numbers look like. That split is why the lure still behaves in edit mode with nothing driving it, and why a cutscene can move the lure by writing state rather than by taking a component over.

What it does every frame

  • The reel. The lure trails the reel with slack (followDamping), so paying out and hauling in both start late and finish late.
  • The swing. A weight on a line does not travel straight down. Changing the reel's speed kicks a damped pendulum (swayHz, swayDamping, swayAmplitude); there is a slow ambient set to the water underneath it, so the lure is never perfectly still.
  • The lamp. Two beat frequencies read as a filament rather than a value. A dim filament runs red and a bright one runs toward white. Past Rules.ATTENTION.warnAt a third, harsher stutter arrives — the lamp gutters, which is the player's warning that something has noticed it. In phase end the lamp is put out, and that is the last thing seen.
  • The line. One unit cylinder, stretched and leaned from just under the hull down to wherever the lamp has swung to, so the swing shows on the line and not only on the lamp.

Fields

followDamping, lampDamping, swayAmplitude, swayHz, swayDamping, and the readout lampOutput — what the lamp is actually putting out right now, flicker and guttering included. The HUD's lamp dial should show Core.state.brightness (what the player set) and may show lampOutput as the needle's tremble.

Slice owner: core-loop.