[gd_scene load_steps=11 format=3 uid="uid://drdgcu2r3yrp7"]

[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_kb2ks"]
[ext_resource type="Resource" uid="uid://cspcgkr0tane2" path="res://Resources/Items/Green_Keycard.tres" id="2_kb2ks"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_w8j5v"]
[ext_resource type="Texture2D" uid="uid://c1hcyxn2og2kq" path="res://Sprites/Actors/Key_Reader.png" id="4_3x3jg"]
[ext_resource type="Texture2D" uid="uid://dsf7jj36mk0xp" path="res://Sprites/Actors/KeyReaderOverlay.png" id="5_x0ajw"]

[sub_resource type="CircleShape2D" id="CircleShape2D_vvpve"]

[sub_resource type="AtlasTexture" id="AtlasTexture_1r0vh"]
atlas = ExtResource("4_3x3jg")
region = Rect2(0, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_vnkqd"]
atlas = ExtResource("4_3x3jg")
region = Rect2(16, 0, 16, 16)

[sub_resource type="AtlasTexture" id="AtlasTexture_330vc"]
atlas = ExtResource("4_3x3jg")
region = Rect2(32, 0, 16, 16)

[sub_resource type="SpriteFrames" id="SpriteFrames_ogukk"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_1r0vh")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vnkqd")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_330vc")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="KeycardReaderGreen" type="Area2D" groups=["Interactable"]]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_kb2ks")
Requirements = Array[ExtResource("2_w8j5v")]([ExtResource("2_kb2ks")])

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

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_ogukk")

[node name="Sprite2D" type="Sprite2D" parent="AnimatedSprite2D"]
modulate = Color(0, 0.649225, 0.227165, 1)
texture = ExtResource("5_x0ajw")
