[gd_scene format=3 uid="uid://byp273amg5ji8"]

[ext_resource type="Script" uid="uid://bvq13h8uyx572" path="res://Scripts/Objects/Chests/item_chest_01.gd" id="1_lp0kr"]
[ext_resource type="PackedScene" uid="uid://d3rqn611axsfk" path="res://Scenes/Animated Sprites/chest01_sprite.tscn" id="2_iwcc8"]
[ext_resource type="Texture2D" uid="uid://crf23tc55dxu" path="res://Assets/Spritesheets/Treasure Chests/Chest_Anim.png" id="3_iwcc8"]

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

[sub_resource type="AtlasTexture" id="AtlasTexture_b5bus"]
atlas = ExtResource("3_iwcc8")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_8m6gq"]
atlas = ExtResource("3_iwcc8")
region = Rect2(80, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_2vpuu"]
atlas = ExtResource("3_iwcc8")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_ydixn"]
atlas = ExtResource("3_iwcc8")
region = Rect2(16, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_wetyp"]
atlas = ExtResource("3_iwcc8")
region = Rect2(32, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_hwpw4"]
atlas = ExtResource("3_iwcc8")
region = Rect2(48, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_clx0v"]
atlas = ExtResource("3_iwcc8")
region = Rect2(64, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_t1w70"]
atlas = ExtResource("3_iwcc8")
region = Rect2(80, 0, 16, 16)

[sub_resource type="SpriteFrames" id="SpriteFrames_0r744"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_b5bus")
}],
"loop": false,
"name": &"closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_8m6gq")
}],
"loop": true,
"name": &"opened",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2vpuu")
}, {
"duration": 3.0,
"texture": SubResource("AtlasTexture_ydixn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_wetyp")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hwpw4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_clx0v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_t1w70")
}],
"loop": false,
"name": &"opening",
"speed": 10.0
}]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_t6vq7"]
size = Vector2(8, 9)

[node name="Item Chest 01" type="StaticBody2D" unique_id=152271802 groups=["Treasure Chest Group"]]
script = ExtResource("1_lp0kr")
metadata/_custom_type_script = "uid://dbuc0f87m24xf"

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=192723247]
position = Vector2(0, -3)
shape = SubResource("RectangleShape2D_y3ooa")

[node name="Sprite" parent="." unique_id=1811986888 instance=ExtResource("2_iwcc8")]
sprite_frames = SubResource("SpriteFrames_0r744")

[node name="Interactable" type="Area2D" parent="." unique_id=406451066]
collision_layer = 2
collision_mask = 0

[node name="CollisionShape2D" type="CollisionShape2D" parent="Interactable" unique_id=124862139]
position = Vector2(0, -9.5)
shape = SubResource("RectangleShape2D_t6vq7")
debug_color = Color(0.8351757, 0.36057177, 0.39313078, 0.41960785)
