Animation and camera tweaking

This commit is contained in:
2026-01-31 13:46:45 +01:00
parent da655ed9b7
commit 02dc155183
4 changed files with 154 additions and 24 deletions

View File

@@ -21,9 +21,9 @@ func _process(delta: float) -> void:
if position.x > limit_right_at_center:
position.x = limit_right_at_center
if should_move_right:
if should_move_right and position.x < limit_right_at_center:
position.x += pan_speed
if should_move_left and position.x > 0:
if should_move_left and position.x > limit_left_at_center:
position.x -= pan_speed