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
Showing only changes of commit ad9e8d62fa - Show all commits

View file

@ -92,6 +92,10 @@ func _ready() -> void:
leftEdgeSensor.target_position = Vector2(0, sensorDepth)
rightEdgeSensor.position = Vector2(edgeSensorRange, 0)
rightEdgeSensor.target_position = Vector2(0, sensorDepth)
# The sensors' parent is the EdgeSensors pivot, so exclude_parent doesn't
# cover us. Without this they can hit our own collider.
leftEdgeSensor.add_exception(self)
rightEdgeSensor.add_exception(self)
# Rotates the sprite to sit on the wall or ceiling. Done in _physics_process
# (not _process) so physics interpolation smooths it along with our movement.