Clean up player.gd: names, comments, grouping, smaller _physics_process #6
Loading…
Reference in a new issue
No description provided.
Delete branch "player-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this does
Tidies up
Characters/player.gdwith no behaviour change.Renames
MAX_SECS_TO_UNSTICKHOLD_TIMEHOP_MAX_HEIGHTHOP_REACHROTATE_TO_WALL_SPEEDROTATE_TO_SURFACE_SPEEDisClimbingLipisHangingOnLiptimeSpentUnstickingLiptimeSpentOnLipn,dirwallNormal,directionConsistency
CLIMB_SPEEDandCEILING_STICK_SPEEDare now positive like every other speed; the direction is applied where they're used.sprite: Sprite2D)._accelerateand_air_steertakedeltalike the other helpers.EDGE_SENSOR_DEPTH,LAND_PITCH_MIN/LAND_PITCH_MAX.Layout
_physics_processis now a short list of steps:_update_facing,_update_vertical_movement,_update_floor_hop,_update_horizontal_movement,_update_wall_sticking,_update_ceiling_sticking._finish_wrapis split out of_update_wrap.Comments
Testing
test_level.tscnloads and runs.🤖 Generated with Claude Code