allow switching sides of ladder (implements #212)

This commit is contained in:
Haze Weathers 2023-11-25 19:02:35 -05:00
parent cb6a9e13f4
commit 8299648c98
3 changed files with 23 additions and 1 deletions

View file

@ -1,5 +1,8 @@
extends Area2D
export var can_climb_left: bool = true
export var can_climb_right: bool = true
onready var left_snap: float = $LeftSnap.global_position.x
onready var right_snap: float = $RightSnap.global_position.x
onready var middle: float = global_position.x + 4.0