Remove the lip hang, which the edge hold has made unreachable #7

Merged
SnekInAScarf merged 1 commit from remove-lip into main 2026-10-31 20:47:51 -05:00
Owner

Stacked on #6 (the cleanup): this PR targets player-cleanup. Optional; skip it if you'd rather keep the lip around.

What this does

Removes the lip hang: when the slime went over a ceiling edge, it hung just past the edge for HOLD_TIME, and pressing up wrapped it onto the wall above.

Why: since the edge hold (#4), the slime stops before leaving a ceiling, so the lip never starts anymore. I checked:

  • 116 ceiling-edge crawls (both directions, starting 12–68px from the edge, one-tile and three-tile-thick platforms): the lip started 0 times.
  • The same results come from the edge hold instead. Holding toward a ceiling edge stops you there, pressing up wraps onto the wall above, and holding on for 0.5s lets go.

Removed: isHangingOnLip, timeSpentOnLip, lipDirection, _start_lip_wrap, CLIMB_INPUT_BUFFER, timeSinceUpPressed, and the lip branches in movement and sticking.

Kept: _start_wall_top_wrap's own raycasts. It runs after the slime has already climbed past the corner, where _find_edge_corner (which looks from the surface you're still touching) can't see it. I added a comment explaining that.

Testing

  • The 1180-frame scripted trace is byte-for-byte identical with and without the lip.
  • Movement suite (39), surface hop tests (13) and ledge drops (88) all pass.
  • test_level.tscn loads and runs.

🤖 Generated with Claude Code

> **Stacked on #6** (the cleanup): this PR targets `player-cleanup`. Optional; skip it if you'd rather keep the lip around. ## What this does Removes the **lip hang**: when the slime went over a ceiling edge, it hung just past the edge for `HOLD_TIME`, and pressing up wrapped it onto the wall above. **Why:** since the edge hold (#4), the slime stops *before* leaving a ceiling, so the lip never starts anymore. I checked: - **116 ceiling-edge crawls** (both directions, starting 12–68px from the edge, one-tile and three-tile-thick platforms): the lip started **0** times. - The same results come from the edge hold instead. Holding toward a ceiling edge stops you there, pressing up wraps onto the wall above, and holding on for 0.5s lets go. **Removed:** `isHangingOnLip`, `timeSpentOnLip`, `lipDirection`, `_start_lip_wrap`, `CLIMB_INPUT_BUFFER`, `timeSinceUpPressed`, and the lip branches in movement and sticking. **Kept:** `_start_wall_top_wrap`'s own raycasts. It runs after the slime has already climbed past the corner, where `_find_edge_corner` (which looks from the surface you're still touching) can't see it. I added a comment explaining that. ## Testing - [x] The 1180-frame scripted trace is **byte-for-byte identical** with and without the lip. - [x] Movement suite (39), surface hop tests (13) and ledge drops (88) all pass. - [x] `test_level.tscn` loads and runs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
SnekInAScarf added 1 commit 2026-10-31 19:44:51 -05:00
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>
SnekInAScarf changed target branch from player-cleanup to main 2026-10-31 20:47:49 -05:00
SnekInAScarf merged commit e5bdc85293 into main 2026-10-31 20:47:51 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: SnekInAScarf/SlimePlatformer#7
No description provided.