summaryrefslogtreecommitdiff
path: root/Units/Climber.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-10-03 20:39:59 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-10-03 20:39:59 +0200
commitb069ea91b095d80667475c06e62712c1bd7b537f (patch)
treefc279d57c99c21e0ed416151b24eb2bc45aab6f5 /Units/Climber.tscn
parent5442988a8ccecb9c323fc98557391a15ff245b87 (diff)
next commit
Diffstat (limited to 'Units/Climber.tscn')
-rw-r--r--Units/Climber.tscn59
1 files changed, 59 insertions, 0 deletions
diff --git a/Units/Climber.tscn b/Units/Climber.tscn
new file mode 100644
index 0000000..c33c517
--- /dev/null
+++ b/Units/Climber.tscn
@@ -0,0 +1,59 @@
+[gd_scene load_steps=5 format=3 uid="uid://vdtrjkwk22jm"]
+
+[ext_resource type="Script" path="res://Units/climber.gd" id="1_2em2d"]
+[ext_resource type="PackedScene" uid="uid://bj8j72hwnt6mo" path="res://animated_sprite.tscn" id="2_qdfwn"]
+[ext_resource type="SpriteFrames" uid="uid://diwyagjvsgq0i" path="res://Units/units_sprite_frames.tres" id="3_j38i2"]
+
+[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_p461f"]
+radius = 2.0
+height = 9.0
+
+[node name="Climber" type="CharacterBody2D"]
+collision_mask = 258
+input_pickable = true
+safe_margin = 0.01
+script = ExtResource("1_2em2d")
+
+[node name="AnimatedSprite" parent="." instance=ExtResource("2_qdfwn")]
+texture_filter = 1
+sprite_frames = ExtResource("3_j38i2")
+animation = &"climb"
+frame_progress = 0.261887
+centered = false
+offset = Vector2(-3, -5)
+
+[node name="NavigationShape" type="CollisionShape2D" parent="."]
+position = Vector2(0, 0.5)
+shape = SubResource("CapsuleShape2D_p461f")
+
+[node name="RayWallLeft" type="RayCast2D" parent="."]
+position = Vector2(0, 3)
+target_position = Vector2(-3, 0)
+collision_mask = 258
+
+[node name="RayHeadLeft" type="RayCast2D" parent="."]
+position = Vector2(0, -3)
+target_position = Vector2(-3, 0)
+collision_mask = 258
+
+[node name="RaySlopeLeft" type="RayCast2D" parent="."]
+position = Vector2(0, 5)
+target_position = Vector2(-3, 0)
+collision_mask = 258
+
+[node name="RayWallRight" type="RayCast2D" parent="."]
+position = Vector2(0, 3)
+target_position = Vector2(4, 0)
+collision_mask = 258
+
+[node name="RayHeadRight" type="RayCast2D" parent="."]
+position = Vector2(0, -3)
+target_position = Vector2(4, 0)
+collision_mask = 258
+
+[node name="RaySlopeRight" type="RayCast2D" parent="."]
+position = Vector2(0, 5)
+target_position = Vector2(4, 0)
+collision_mask = 258
+
+[connection signal="input_event" from="." to="." method="_on_input_event"]