Smoother movement feel, plus landing/wrap sounds and splat particles #4

Merged
SnekInAScarf merged 5 commits from movement-feel into main 2026-10-31 20:47:34 -05:00

5 commits

Author SHA1 Message Date
31f1de7d68 Halve edgeSensorRange to 12 so edge wraps need the slime at the edge
Pressing into a surface now only wraps around its edge when the slime's
center is within 12px of it, i.e. the slime is touching the edge (about
1px gap), instead of up to 13px away with the old 24. Walking up to an
edge still always works, since the edge hold stops the slime there.

Measured with a headless sweep of 24/16/14/12/10/8/6/4 on floors,
ceilings and wall bottoms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 15:54:34 -07:00
ad9e8d62fa Stop the edge sensors from hitting the player's own collider
Since the sensors moved under the EdgeSensors pivot, exclude_parent
excludes the pivot rather than the player. With edgeSensorRange equal to
the slime's radius the rays start on the edge of its circle and hit it,
so edge wraps never triggered. Add the player as an exception.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 15:54:15 -07:00
c212748b8d Don't treat tile seams or the foot of a wall as an edge
The level's TileMapLayer is made of separate collision shapes, and the
ray that looks for the side of a platform could hit the inside face of
a neighbouring tile. That made walking along the floor stop and "hold"
at tile seams and next to walls. A corner now only counts as an edge if
there's empty space just past it, behind the surface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 15:14:07 -07:00
e5c176f1f6 Hold at the edge of any surface before letting go
Moving along a floor, ceiling or down a wall towards its edge now stops
at the edge, and only carries on over it after holding towards it for
MAX_SECS_TO_UNSTICK. Before, only ceilings had this (the lip, which
started after leaving), so walking off a floor sideways or crawling off
the bottom of a wall dropped instantly. Climbing up past a wall top
still swings over onto it straight away.

- While holding at an edge, pressing into the surface still wraps
  around it.
- After wrapping onto a ceiling, a held down doesn't count towards
  letting go until it's released (like walls already did).
- Pull the corner finding out of _try_edge_wrap into _find_edge_corner.
- project.godot: settings re-sorted by the editor, no change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 15:02:33 -07:00
20f4785d56 Smoother movement feel, plus landing/wrap sounds and splat particles
- Accelerate to full speed in 4 frames and stop in 6, on floors, walls
  and ceilings, instead of snapping.
- Keep momentum when leaving a surface; air steering is gentler and
  extra speed fades slowly. Fall speed capped at 400.
- Edge wraps ease in from a standstill and carry their speed out onto the
  new surface.
- Pull back onto a wall/ceiling that's drifted up to 4px away instead of
  falling off (floor_snap_length matches).
- Physics interpolation and pixel-snapped 2D transforms. Sprite rotation
  moved into _physics_process and made frame-rate independent.
- Squish sound + slime particles on landing, bubble sound on wraps.
  Placeholder CC0 sounds by rubberduck from OpenGameArt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 13:37:54 -07:00