Skip to content

line-field-14

Choose a tag to compare

@lamb2k lamb2k released this 22 Nov 23:54
· 18 commits to main since this release
3188d32

The line field can drop an agent that is in the air over a gap too long for it to clear. With the new parameter at 0 the step is line-field-13's, bit for bit.

  • Change: behave->gap_reach_ticks, appended to the behaviour block. With it above 0, an agent in the air flies speed * gap_reach_ticks; once it has covered that from the start of its air run (the contiguous nodes matching the air mask, at most 64 back) and is still in the run, it leaves the line as on an open edge: falling, then retiring fall_ticks later. A run exactly the reach long is cleared. Stateless, no new brain field.
  • API: one new field, gap_reach_ticks. No new entry point.
  • Cost: one scan of at most 64 node flags a step for an agent in the air with the field set; nothing otherwise.
  • Objects: no libc memcpy, memset or memmove in the SH-2 objects; compiled with -Wall -Wextra -Werror.
  • Evidence: HOST: line_field_exact 26,365,473 checks under GCC, Clang and ASan/UBSan; an oracle over 3000 random scenes; an identity differential against main over 20000 scenes (same hash with the field at 0); 12 of 13 mutation controls caught, the other equivalent. No instruction model, no console run. CI on the merged head passes (host, SH-2 cross compile, math lab, docs). Validation record.
  • Merge: PR #81, merge 3188d32.
  • Guide: saturn/LINE_FOLLOWER.md.