[gd_scene load_steps=6 format=2]

[ext_resource path="res://Sprites/Levels/Interactables/Treasure_Chest_Open.png" type="Texture" id=1]
[ext_resource path="res://Sprites/Levels/Interactables/Treasure_Chest_Closed.png" type="Texture" id=2]
[ext_resource path="res://Levels/Interactables/Gem.tscn" type="PackedScene" id=3]
[ext_resource path="res://Levels/Interactables/Treasure Chest.gd" type="Script" id=4]

[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 21.3333, 17.3333 )

[node name="TreasureChest" type="Sprite" groups=["enemies"]]
script = ExtResource( 4 )

[node name="chestOpened" type="Sprite" parent="."]
visible = false
texture = ExtResource( 1 )

[node name="chestClosed" type="Sprite" parent="."]
texture = ExtResource( 2 )

[node name="Gem" parent="." instance=ExtResource( 3 )]
visible = false

[node name="Player Detector" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 2
input_pickable = false
monitorable = false

[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
visible = false
position = Vector2( 1, -1 )
scale = Vector2( 1.5, 1.5 )
shape = SubResource( 1 )

[connection signal="area_entered" from="Player Detector" to="." method="_on_Player_Detector_area_entered"]
