the-third-place/scenes/enemy_chicken.tscn
Henry 2a7e1a2b6c Updated goose_talk to allow for interruptions (unfinished); improved
chicken animation, reduced scale in-engine.
2026-02-14 17:46:02 +00:00

72 lines
2.2 KiB
Text

[gd_scene format=3 uid="uid://drwm27rxxpq3t"]
[ext_resource type="Script" uid="uid://i0r17jo6838m" path="res://scenes/enemy_chicken.gd" id="1_s7c3p"]
[ext_resource type="Texture2D" uid="uid://cy4jggxmnohbb" path="res://sprites/chicken.png" id="2_h1rgn"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4gyqm"]
size = Vector2(21, 23)
[sub_resource type="Animation" id="Animation_h1rgn"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_s7c3p"]
resource_name = "flap"
length = 0.4
loop_mode = 2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.0009999999, 0.2, 0.4),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [0, 1, 2]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7ellt"]
_data = {
&"RESET": SubResource("Animation_h1rgn"),
&"flap": SubResource("Animation_s7c3p")
}
[node name="EnemyChicken" type="Area2D" unique_id=1433837580 groups=["enemies"]]
scale = Vector2(0.7, 0.7)
script = ExtResource("1_s7c3p")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=2115910138]
texture = ExtResource("2_h1rgn")
hframes = 3
region_enabled = true
region_rect = Rect2(0, 0, 84, 32)
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1841693239]
scale = Vector2(1.5384617, 1.5384617)
shape = SubResource("RectangleShape2D_4gyqm")
[node name="MoveTimer" type="Timer" parent="." unique_id=1928257014]
one_shot = true
[node name="ShootTimer" type="Timer" parent="." unique_id=1985644907]
one_shot = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=702523492]
libraries/ = SubResource("AnimationLibrary_7ellt")
autoplay = &"flap"
[connection signal="timeout" from="MoveTimer" to="." method="_on_timer_timeout"]
[connection signal="timeout" from="ShootTimer" to="." method="_on_shoot_timer_timeout"]