[gd_scene load_steps=12 format=3 uid="uid://djpowg53xsgux"] [ext_resource type="Script" uid="uid://by3eww6d7boay" path="res://objects/player/player.gd" id="1_cqmt1"] [ext_resource type="Texture2D" uid="uid://b0myjj8ggu2gt" path="res://assets/graphics/splint.png" id="2_g7ett"] [ext_resource type="Script" uid="uid://bbgvbxyesmfkg" path="res://objects/player/groove.gd" id="3_jnjyq"] [ext_resource type="Texture2D" uid="uid://dgclvsxcplj81" path="res://assets/graphics/groove.png" id="3_ssrue"] [sub_resource type="CircleShape2D" id="CircleShape2D_cqmt1"] [sub_resource type="Animation" id="Animation_ssrue"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:flip_h") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } [sub_resource type="Animation" id="Animation_jnjyq"] resource_name = "idle" length = 0.001 step = 0.25 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:flip_h") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [false] } [sub_resource type="Animation" id="Animation_g7ett"] resource_name = "walk" length = 0.3 loop_mode = 1 step = 0.05 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:flip_h") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.15), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [true, false] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_gnkmh"] _data = { &"RESET": SubResource("Animation_ssrue"), &"idle": SubResource("Animation_jnjyq"), &"walk": SubResource("Animation_g7ett") } [sub_resource type="CircleShape2D" id="CircleShape2D_ssrue"] [sub_resource type="CircleShape2D" id="CircleShape2D_jnjyq"] radius = 12.0 [node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("_animations") groups=["knockable"]] motion_mode = 1 script = ExtResource("1_cqmt1") walk_speed = 100.0 stun_factor = 200.0 _animations = NodePath("AnimationPlayer") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_cqmt1") [node name="Sprite2D" type="Sprite2D" parent="."] texture = ExtResource("2_g7ett") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { &"": SubResource("AnimationLibrary_gnkmh") } [node name="Node" type="Node" parent="."] [node name="Groove" type="CharacterBody2D" parent="Node" node_paths=PackedStringArray("player")] position = Vector2(64, 0) script = ExtResource("3_jnjyq") rest_length = 64.0 springiness = 16.0 damping = 0.5 player = NodePath("../..") [node name="Sprite2D" type="Sprite2D" parent="Node/Groove"] texture = ExtResource("3_ssrue") [node name="CollisionShape2D" type="CollisionShape2D" parent="Node/Groove"] shape = SubResource("CircleShape2D_ssrue") [node name="Hitbox" type="Area2D" parent="Node/Groove"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Node/Groove/Hitbox"] shape = SubResource("CircleShape2D_jnjyq") [connection signal="body_entered" from="Node/Groove/Hitbox" to="Node/Groove" method="_on_hitbox_body_entered"]