[gd_scene load_steps=15 format=3 uid="uid://dh2fvaypdfgsl"]

[ext_resource type="Texture2D" uid="uid://cwvkbxng585yv" path="res://Assets/Sprites/Blocks/DeathBlock.png" id="1_sauix"]
[ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="2_6cjqp"]
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_ubant"]
[ext_resource type="Script" uid="uid://cqif1li7otvpl" path="res://Scripts/Parts/SpriteFramesToJsonConverter.gd" id="4_aopyt"]
[ext_resource type="JSON" path="res://Assets/Sprites/Blocks/DeathBlock.json" id="4_ubant"]
[ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="5_l5v6c"]
[ext_resource type="Script" uid="uid://d4a7yp6e55u8t" path="res://Scripts/Classes/Components/TrackJoint.gd" id="7_aopyt"]

[sub_resource type="GDScript" id="GDScript_l5v6c"]
script/source = "extends StaticBody2D


func on_player_entered(player: Player) -> void:
	player.die()
"

[sub_resource type="AtlasTexture" id="AtlasTexture_icrp6"]
atlas = ExtResource("1_sauix")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_wsxqq"]
atlas = ExtResource("1_sauix")
region = Rect2(16, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_ubant"]
atlas = ExtResource("1_sauix")
region = Rect2(32, 0, 16, 16)

[sub_resource type="SpriteFrames" id="SpriteFrames_60x7i"]
animations = [{
"frames": [{
"duration": 10.0,
"texture": SubResource("AtlasTexture_icrp6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wsxqq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ubant")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wsxqq")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_eg0rv"]
size = Vector2(16, 16)

[sub_resource type="Resource" id="Resource_p4bel"]
script = ExtResource("5_l5v6c")
Overworld = SubResource("SpriteFrames_60x7i")
metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"

[node name="DeathBlock" type="StaticBody2D"]
collision_layer = 390
collision_mask = 0
script = SubResource("GDScript_l5v6c")

[node name="Sprite" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_60x7i")
autoplay = "default"
frame_progress = 0.116988
script = ExtResource("2_6cjqp")
do_offset = false
metadata/_custom_type_script = "uid://caq1qiwmy0mox"

[node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
script = ExtResource("3_ubant")
node_to_affect = NodePath("..")
property_name = "sprite_frames"
resource_json = ExtResource("4_ubant")
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_eg0rv")

[node name="ThemedToJSONConverter" type="Node" parent="."]
script = ExtResource("4_aopyt")
resource = SubResource("Resource_p4bel")
json_file_path = "res://Assets/Sprites/Blocks/DeathBlock.json"
metadata/_custom_type_script = "uid://cqif1li7otvpl"

[node name="TrackJoint" type="Node" parent="."]
script = ExtResource("7_aopyt")
offset = Vector2(0, 0)
metadata/_custom_type_script = "uid://d4a7yp6e55u8t"
