Maze mode: generated tube mazes with one-way tubes, blow and suction
zones, a soft-lock validator, and manual tubes only (goo tubes removed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Goo tubes played the same as manual tubes. Drop TubeGoo, the purple
tile alternatives and the tube_goo custom data layer; the maze
generator now picks auto or manual for two-way tubes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Halls per region give open air; "open rides" (12+ tiles) run through
rock and open air between far-apart spots, often across screens, as long
as each region's air stays connected. Tube counts and winding raised.
- Same-kind tubes may cross straight across a straight tile (cross tile;
new orange one-way cross alternative). Auto/one-way go straight,
manual/goo join networks (checked live).
- Fix: sideways blower landing must be 1 tile tall; one-way tubes with
both ends in one region are checked together.
- maze_check: hand-made junction map passes as manual, fails as auto.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Regions are now dense labyrinths (recursive backtracker on a coarse grid,
1-3 tile corridors, braided loops by complexity); tubes run in the rock
between regions, wall pipes give shortcuts inside a region.
- One-way entrances suck the slime in (player.pull_into_tube); blow zone
is now 1 tile; blown motes are white. TubeBlower -> TubeAirCurrents.
- Validator: generous "might get to" areas vs strict SlimeMoves model
(surface slides, corners, wraps, 1-tile gaps, ceiling falls, tubes,
forced suction/blow tiles as all-outcomes states).
- maze_check: new hand-made blow-zone and suction traps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- 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>
- Carry item (Items/): picked up on touch, rides see-through in the slime's
center, left behind at the mouth when the slime enters a tube. Has gravity.
Placeholder Godot icon sprite. One placed in the test level.
- Wall-press sprite (new frame 9, PressWall animation): shown when pushing
into a wall from the floor or ceiling, into a tube mouth in a wall, or from
a wall into a floor/ceiling mouth. Flipped/turned and shifted to sit flush.
- Ceiling corners: pushing sideways into a wall keeps the slime on the
ceiling; holding down moves it onto the wall.
- Tubes: squeezing closes the gap to the mouth; mouths are found a frame
ahead so climbing past one can't skip it; backing out of a wall mouth
entered from the floor or ceiling puts the slime on the wall.
- Tube goo draws behind the tiles (shows only through the channel); the
manual tube's leader circle stays in front.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manual tubes (TubeSteer):
- The slime is pulled fully into the tube on entry; tubes too short for it
squash it to fit, with a few pixels poking out of each mouth.
- A leader slides quickly through the goo without moving it, and drags the
goo at normal speed once past an end. At covered junctions it can turn into
another arm, or pull into an empty branch, draining the goo from all sides.
- Only coloured pixels go in; a black outline is drawn around the goo, with
rounded ends in the tube.
- The leader is a pulsing circle; colour, border colour and radius are set
under "Tube Indicator" on the Player.
Tiles and level:
- Plain tube tiles are now manual, green ones automatic. Test level tubes
repainted plain so they stay manual.
Also included (earlier work): goo tube prototype (TubeGoo, purple tiles) and a
max length for the automatic pixel stream.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manual tubes (TubeSteer):
- The slime is pulled fully into the tube on entry; tubes too short for it
squash it to fit, with a few pixels poking out of each mouth.
- A leader slides quickly through the goo without moving it, and drags the
goo at normal speed once past an end. At covered junctions it can turn into
another arm, or pull into an empty branch, draining the goo from all sides.
- Only coloured pixels go in; a black outline is drawn around the goo, with
rounded ends in the tube.
- The leader is a pulsing circle; colour, border colour and radius are set
under "Tube Indicator" on the Player.
Tiles and level:
- Plain tube tiles are now manual, green ones automatic. Test level tubes
repainted plain so they stay manual.
Also included (earlier work): goo tube prototype (TubeGoo, purple tiles) and a
max length for the automatic pixel stream.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each 2x2 block of the slime's frame (black pixels left out) is now a
rotation-locked RigidBody2D on its own layer, so the pieces bounce off the
level, get pushed by the piston and pile up on each other.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The piston winds up, slams down, holds and retracts on a timer. Catching the
slime under the head breaks its current frame into one particle per non-black
pixel, which bounce off and settle on the level. The level reloads afterwards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The slime used to stop with its center on the corner, leaving the flat
side of the sprite floating past the edge. It now stops with the leading
sensor just past the edge, so the sprite's side lines up with it. Holding
on then detaches, and pressing into the surface wraps from there.
Wall tops now stop the same way, instead of carrying straight on into the
wrap, and walls show the ReachX animation while held at an edge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Store only what can't be worked out: the corner, the surface normals we
leave and land on, where we started, where the arc begins, and the speed
and distance travelled. Arc radius and length, entry length, the exit
move and the sprite rotations are now small _wrap_... helpers.
_begin_wrap takes (corner, fromNormal, ontoNormal[, arcStartAngle])
instead of five loosely related values.
Same behaviour, except the wall-top wrap now always uses the arc's radius
(a straight sub-pixel entry instead of easing it during the arc) and turns
the sprite from the wall's rotation rather than wherever it was: at most
~0.5px and ~4 degrees different mid-wrap, ending in the same place.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only comments and blank lines changed (the code with comments stripped
is identical). Shortened the overview, section headers and longer
explanations, and removed comments that just describe the next line.
Kept the ones explaining why or non-obvious maths.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No behaviour change (the 1180-frame scripted trace is identical before
and after, and all headless tests pass).
- Overview at the top: what the slime can do, how a frame runs, and a
glossary (y points down, delta, normal, tangent, dot product, raycast).
- Big section headers; every setting has a plain-English comment.
- No backslash line continuations or dense one-line if/elses: long
conditions are split into named bools (climbedPastWallTop, holdingDown,
standingStill, hitHeadOn, ...), one-line ifs are full blocks.
- Explicit checks instead of truthiness (== 0.0, .is_empty(), == null).
- The maths is explained: the hop speed formula (now _get_hop_speed),
exponential smoothing, arc length, the wall-hop arc.
- Clearer names: pos -> currentPosition, line -> justInsideSurface,
step -> distanceThisFrame, along -> inputAlongSurface, offset ->
fromCorner, wrapTravelled -> wrapDistanceTravelled, and the wrap angle
parameters -> arcStartAngle/arcEndAngle.
- Letting go of walls and ceilings split out of the movement steps into
_update_wall_letting_go and _update_ceiling_letting_go.
- Keeps the "FX resources" grouping of the sound/particle nodes and
landSounds from the working copy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The edge hold stops the slime before it leaves a ceiling, so the lip
(hanging just past a ceiling edge after leaving it) never started any
more: 0 times in 116 ceiling-edge crawls covering both directions, many
starting points and thin/thick platforms. Removes its state,
_start_lip_wrap, CLIMB_INPUT_BUFFER and timeSinceUpPressed.
_start_wall_top_wrap keeps its own raycasts: it runs after we've passed
the corner, where _find_edge_corner can't see it. Comment added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No behaviour change (a 1180-frame scripted trace is identical before and
after, and all headless tests pass).
- Renames: MAX_SECS_TO_UNSTICK -> HOLD_TIME (it times holds, hops and
lips too), HOP_MAX_HEIGHT -> HOP_REACH (also sideways/down),
ROTATE_TO_WALL_SPEED -> ROTATE_TO_SURFACE_SPEED, isClimbingLip ->
isHangingOnLip, timeSpentUnstickingLip -> timeSpentOnLip, plus
n/dir -> wallNormal/direction.
- CLIMB_SPEED and CEILING_STICK_SPEED are positive like the other speeds,
with the direction applied where they're used.
- Missing type annotations added (including sprite: Sprite2D).
- Constants and state grouped by feature; magic numbers for sensor depth
and landing pitch named.
- _physics_process split into _update_facing, _update_vertical_movement,
_update_floor_hop, _update_horizontal_movement, _update_wall_sticking
and _update_ceiling_sticking; _finish_wrap split out of _update_wrap.
- _accelerate/_air_steer take delta like the other helpers.
- Stale and vague comments fixed (lip push marked as a fallback, the
resolved note at the top removed, typos).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Holding away from a wall while climbing, or down on a ceiling while
moving left/right, no longer counts towards MAX_SECS_TO_UNSTICK; the
timer starts over once you stop. Same rule as the floor hop, and it
covers both letting go and hopping across.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a wrap finishes, Godot still thinks we're on the floor we started
from. On the finishing move_and_slide it then snapped us down onto it
(floor_snap_length) and counted the wall we were pushed into as floor
(floor_block_on_wall), so we landed as "on floor", stuck to nothing,
and fell the next frame. It only happened on right-hand ledges because
of how the contact lined up. Turn both off for the finishing move unless
the wrap ends on a floor.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Holding away from a wall or ceiling for MAX_SECS_TO_UNSTICK, while not
moving along it, now hops straight across to a surface within
HOP_MAX_HEIGHT on that side and sticks to it. With nothing in reach (or
while moving along the surface) it lets go as before.
- Wall hops go at crawling speed on an arc that lands at the same height,
with no air steering until they land.
- Ceiling hops push down onto the floor below.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Holding left or right resets the hop timer, so the 0.5s hold only
counts while standing still.
- HOP_MAX_HEIGHT is now 32 (one tile), as adjusted by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>