Commit graph

2 commits

Author SHA1 Message Date
tachyonwolf
88c4920fde One-way tube exits blow the slime away; validator models blow zones
- Air blows out of one-way exits: orange motes stream out (TubeAirflow,
  renamed from TubeVacuum, now draws intake and blow) and TubeBlower
  pushes the slime within 2 tiles of the mouth via player.blow_away():
  knocked off walls/ceilings, lifted off the floor.
- Generator: at most one one-way tube comes out in each chamber; no other
  mouth, Start or End inside a blow zone.
- Validator (from tiles, via OneWayTube.find_exits/blow_zone): checks the
  same rules, so each chamber's crawlable boundary stays connected.
- maze_check: also checks Start in a blow zone is rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:52:58 -06:00
tachyonwolf
e7ae22b8cd Add Maze mode with one-way tubes and a soft-lock check
- Main menu "Maze" button opens a setup panel (width, height in screens;
  complexity 1-5) and generates a maze of rock chambers joined by tubes,
  with Start and End pads and a win panel.
- New one-way tube kind: orange tiles that only let the slime in at their
  entrance, with motes drifting into it (OneWayTube, TubeVacuum). The
  auto-tube trace moved to PixelStream.trace_tube so the player and the
  maze validator share it.
- Generation: chamber graph (spanning tree rooted at End, one-way tubes
  only towards End on the route, extra tubes), carved with AStarGrid2D.
  MazeValidator re-derives the chamber graph from the tiles and checks
  that End is reachable from every chamber reachable from Start.
- tests/maze_check.gd: headless batch check (360 mazes) plus a known
  soft-lock the validator must reject. See docs/MAZE.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 15:45:46 -06:00