2024-09-15 23:25:12 +03:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://chmxabjea27ay"]
|
2024-09-14 22:26:26 +03:00
|
|
|
|
2024-09-15 17:51:07 +03:00
|
|
|
[ext_resource type="Script" path="res://puzzles/grave/grave.gd" id="1_ooabc"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://boii66my2eiqr" path="res://puzzles/assets/grave.png" id="1_wcgrd"]
|
2024-09-14 22:26:26 +03:00
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_4eb2t"]
|
|
|
|
resource_name = "RESET"
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".: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_x7kib"]
|
|
|
|
resource_name = "complete"
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75, 1),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [5, 6, 7, 8, 9]
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:50:30 +03:00
|
|
|
[sub_resource type="Animation" id="Animation_w5bs5"]
|
|
|
|
resource_name = "sing"
|
2024-09-15 17:51:07 +03:00
|
|
|
length = 2.0
|
2024-09-14 22:50:30 +03:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2024-09-15 17:51:07 +03:00
|
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
|
2024-09-14 22:50:30 +03:00
|
|
|
"update": 1,
|
2024-09-15 17:51:07 +03:00
|
|
|
"values": [1, 2, 3, 4, 1, 2, 3, 4]
|
2024-09-14 22:50:30 +03:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:26:26 +03:00
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_n47hy"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_4eb2t"),
|
|
|
|
"complete": SubResource("Animation_x7kib"),
|
|
|
|
"sing": SubResource("Animation_w5bs5")
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:50:30 +03:00
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_h3pxl"]
|
|
|
|
atlas = ExtResource("1_wcgrd")
|
|
|
|
|
2024-09-15 23:25:12 +03:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_smj88"]
|
|
|
|
size = Vector2(8, 8)
|
|
|
|
|
|
|
|
[node name="Grave" type="StaticBody2D"]
|
|
|
|
collision_layer = 2
|
2024-09-15 17:51:07 +03:00
|
|
|
script = ExtResource("1_ooabc")
|
2024-09-14 22:26:26 +03:00
|
|
|
|
2024-09-14 22:50:30 +03:00
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
root_node = NodePath("../Sprite2D")
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_n47hy")
|
|
|
|
}
|
|
|
|
autoplay = "RESET"
|
|
|
|
|
2024-09-14 22:26:26 +03:00
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
|
|
texture_filter = 1
|
|
|
|
texture = SubResource("AtlasTexture_h3pxl")
|
|
|
|
hframes = 5
|
|
|
|
vframes = 2
|
2024-09-15 17:51:07 +03:00
|
|
|
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
|
|
|
2024-09-15 23:25:12 +03:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("RectangleShape2D_smj88")
|
|
|
|
|
2024-09-15 17:51:07 +03:00
|
|
|
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
|