[gd_scene load_steps=14 format=3 uid="uid://8v5mbbnddorh"] [ext_resource type="Texture2D" uid="uid://dc6grg2oaq3a6" path="res://scenes/Duck/ente.png" id="1"] [ext_resource type="Script" path="res://scenes/Duck/Duck.gd" id="1_pvotk"] [ext_resource type="Texture2D" uid="uid://dsifqpp5l00cr" path="res://scenes/Duck/ente_colormask.png" id="3_a4v8w"] [ext_resource type="Texture2D" uid="uid://c1mq2xs0uuoxu" path="res://scenes/Duck/customs/1.png" id="4_acy8u"] [ext_resource type="Script" path="res://scenes/Duck/skin.gd" id="4_gc1nf"] [sub_resource type="Animation" id="5"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("../EnteConstantSprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [4] } [sub_resource type="Animation" id="6"] resource_name = "die" length = 0.3 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("../EnteConstantSprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [5] } [sub_resource type="Animation" id="7"] resource_name = "fly" length = 0.5 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("../EnteConstantSprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [2] } [sub_resource type="Animation" id="2"] resource_name = "idle" loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("../EnteConstantSprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [0, 1] } [sub_resource type="Animation" id="3"] resource_name = "walk" length = 0.5 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("../EnteConstantSprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.5), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [3, 4] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_rcmnp"] _data = { "RESET": SubResource("5"), "die": SubResource("6"), "fly": SubResource("7"), "idle": SubResource("2"), "walk": SubResource("3") } [sub_resource type="CircleShape2D" id="CircleShape2D_1551i"] radius = 1.21655 [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_46c8m"] radius = 6.0 height = 14.0 [node name="Duck" type="CharacterBody2D"] script = ExtResource("1_pvotk") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] root_node = NodePath("../hitbox") libraries = { "": SubResource("AnimationLibrary_rcmnp") } [node name="EnteConstantSprite" type="Sprite2D" parent="."] texture_filter = 3 position = Vector2(-8, -16) texture = ExtResource("1") centered = false hframes = 3 vframes = 2 frame = 4 [node name="EnteColormask" type="Sprite2D" parent="EnteConstantSprite"] modulate = Color(1, 1, 0, 1) texture = ExtResource("3_a4v8w") centered = false hframes = 3 vframes = 2 [node name="Skin" type="Sprite2D" parent="EnteConstantSprite"] unique_name_in_owner = true texture = ExtResource("4_acy8u") centered = false hframes = 3 vframes = 2 script = ExtResource("4_gc1nf") [node name="physicsbox" type="CollisionShape2D" parent="."] position = Vector2(2.38419e-07, -6) scale = Vector2(5, 5) shape = SubResource("CircleShape2D_1551i") [node name="hitbox" type="Area2D" parent="."] position = Vector2(13, -2) collision_layer = 2 collision_mask = 2 [node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"] position = Vector2(-13, -4) shape = SubResource("CapsuleShape2D_46c8m") debug_color = Color(0.906661, 0.254677, 0.42413, 0.42) [connection signal="frame_changed" from="EnteConstantSprite" to="." method="_on_ente_sprite_frame_changed"] [connection signal="area_entered" from="hitbox" to="." method="_collide_with_hindernis"]