[gd_scene format=3 uid="uid://bosbrhc3oprau"] [ext_resource type="Script" uid="uid://daowp76saltic" path="res://src/creatures/birb/Birb.cs" id="1_lyo8d"] [ext_resource type="Texture2D" uid="uid://drr8qkupay1am" path="res://src/creatures/birb/birb.png" id="2_bu42x"] [ext_resource type="Script" uid="uid://b4k42r866lkut" path="res://src/combat/Hitbox.cs" id="3_bu42x"] [sub_resource type="AtlasTexture" id="AtlasTexture_rbw7q"] atlas = ExtResource("2_bu42x") region = Rect2(0, 0, 64, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ha735"] atlas = ExtResource("2_bu42x") region = Rect2(0, 48, 64, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_8ar45"] atlas = ExtResource("2_bu42x") region = Rect2(0, 96, 64, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_nb8qb"] atlas = ExtResource("2_bu42x") region = Rect2(64, 96, 64, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_hb86p"] atlas = ExtResource("2_bu42x") region = Rect2(128, 96, 64, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_k3bhq"] atlas = ExtResource("2_bu42x") region = Rect2(192, 96, 64, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ovgui"] atlas = ExtResource("2_bu42x") region = Rect2(256, 96, 64, 48) [sub_resource type="SpriteFrames" id="SpriteFrames_580w7"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_rbw7q") }], "loop": 1, "name": &"idle", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ha735") }], "loop": 1, "name": &"prepare", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_8ar45") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_nb8qb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hb86p") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_k3bhq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ovgui") }], "loop": 1, "name": &"stab", "speed": 5.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_8bh2b"] size = Vector2(34, 2) [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_feb5d"] radius = 6.0 [sub_resource type="CircleShape2D" id="CircleShape2D_lyo8d"] radius = 60.0 [sub_resource type="CircleShape2D" id="CircleShape2D_ba6cv"] radius = 180.00278 [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_lyo8d"] bg_color = Color(0.15, 0.15, 0.15, 0.34509805) [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ba6cv"] bg_color = Color(0.73, 0.10949998, 0.14052509, 0.8666667) [sub_resource type="Animation" id="Animation_lyo8d"] length = 0.001 step = 0.1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Body:animation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [&"idle"] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Body:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } [sub_resource type="Animation" id="Animation_ba6cv"] resource_name = "idle" loop_mode = 1 step = 0.1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Body:animation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [&"idle"] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Body:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } [sub_resource type="Animation" id="Animation_1i6dk"] resource_name = "prepare_attack" length = 24.000010357628017 step = 0.1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Body:animation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [&"prepare_attack"] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Body:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } [sub_resource type="Animation" id="Animation_3ly8m"] resource_name = "stab" length = 0.8333333 step = 0.016666668 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Body:animation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [&"stab"] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Body:frame") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.1, 0.5, 0.55, 0.6333333), "transitions": PackedFloat32Array(1, 1, 1, 1, 1), "update": 1, "values": [0, 1, 2, 3, 4] } tracks/2/type = "method" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath(".") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0.8333333), "transitions": PackedFloat32Array(1), "values": [{ "args": [], "method": &"OnAttackFinished" }] } tracks/3/type = "method" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("Body/StabHitbox") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0.5, 0.6333333), "transitions": PackedFloat32Array(1, 1), "values": [{ "args": [], "method": &"StartAttack" }, { "args": [], "method": &"StopAttack" }] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_1i6dk"] _data = { &"RESET": SubResource("Animation_lyo8d"), &"idle": SubResource("Animation_ba6cv"), &"prepare_attack": SubResource("Animation_1i6dk"), &"stab": SubResource("Animation_3ly8m") } [node name="Birb" type="CharacterBody2D" unique_id=428810294] collision_layer = 4 collision_mask = 65 script = ExtResource("1_lyo8d") metadata/_edit_group_ = true [node name="Body" type="AnimatedSprite2D" parent="." unique_id=581143480] unique_name_in_owner = true position = Vector2(7, -20) sprite_frames = SubResource("SpriteFrames_580w7") animation = &"idle" offset = Vector2(9, -4) [node name="StabHitbox" type="Area2D" parent="Body" unique_id=1373491990] unique_name_in_owner = true visible = false position = Vector2(20, 9) collision_layer = 16 collision_mask = 2 script = ExtResource("3_bu42x") [node name="CollisionShape2D" type="CollisionShape2D" parent="Body/StabHitbox" unique_id=1331922714] shape = SubResource("RectangleShape2D_8bh2b") debug_color = Color(0.99607843, 0, 0.23137255, 0.41960785) [node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1744954023] position = Vector2(0, -15) shape = SubResource("CapsuleShape2D_feb5d") [node name="Detection" type="Area2D" parent="." unique_id=151830843] visible = false position = Vector2(0, -22) collision_layer = 0 collision_mask = 2 monitorable = false [node name="CollisionShape2D" type="CollisionShape2D" parent="Detection" unique_id=1217467707] shape = SubResource("CircleShape2D_lyo8d") debug_color = Color(0, 0.6, 0.69803923, 0.16862746) [node name="Chase" type="Area2D" parent="." unique_id=172000915] visible = false position = Vector2(0, -22) collision_layer = 0 collision_mask = 2 monitorable = false [node name="CollisionShape2D" type="CollisionShape2D" parent="Chase" unique_id=567870323] shape = SubResource("CircleShape2D_ba6cv") debug_color = Color(0, 0.6, 0.69803923, 0) [node name="HealthBar" type="ProgressBar" parent="." unique_id=369348156] unique_name_in_owner = true visible = false anchors_preset = 5 anchor_left = 0.5 anchor_right = 0.5 offset_left = -10.0 offset_top = -35.0 offset_right = 10.0 offset_bottom = -33.0 grow_horizontal = 2 theme_override_styles/background = SubResource("StyleBoxFlat_lyo8d") theme_override_styles/fill = SubResource("StyleBoxFlat_ba6cv") max_value = 4.0 value = 4.0 show_percentage = false [node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=695394949] unique_name_in_owner = true libraries/ = SubResource("AnimationLibrary_1i6dk") [connection signal="body_entered" from="Detection" to="." method="OnDetectionBodyEntered"] [connection signal="body_exited" from="Chase" to="." method="OnChaseBodyExited"]