Files
aarpg/interactables/dungeon/locked_door.tscn
Andriy Yednarovych e877c5f058 init
2026-02-22 19:26:26 +01:00

196 lines
5.9 KiB
Plaintext

[gd_scene format=3 uid="uid://c5nlta1d2wt5g"]
[ext_resource type="Texture2D" uid="uid://bs2wf6avylmry" path="res://interactables/dungeon/dungeon_props.png" id="1_onbon"]
[ext_resource type="Script" uid="uid://oyjsrhwdd54n" path="res://interactables/dungeon/scripts/locked_door.gd" id="1_xbbsa"]
[ext_resource type="Resource" uid="uid://q18yuwmxakt8" path="res://items/key_dungeon.tres" id="2_fy1mf"]
[ext_resource type="PackedScene" uid="uid://dqwuowiyehr7d" path="res://general/persistent_data/persistent_data_handler.tscn" id="2_n53nc"]
[ext_resource type="AudioStream" uid="uid://bydopokqnfehy" path="res://interactables/dungeon/locked_door.wav" id="3_y44bh"]
[ext_resource type="AudioStream" uid="uid://b2yrs5ko1vq8k" path="res://interactables/dungeon/unlock_door.wav" id="4_3j3fx"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_onbon"]
size = Vector2(66, 66)
[sub_resource type="Animation" id="Animation_fy1mf"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("StaticBody2D/CollisionShape2D:disabled")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_u0hpk"]
resource_name = "close_door"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.20000002),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("StaticBody2D/CollisionShape2D:disabled")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.20000002),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
[sub_resource type="Animation" id="Animation_y44bh"]
resource_name = "closed"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("StaticBody2D/CollisionShape2D:disabled")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_sugh4"]
resource_name = "open_door"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.20000002),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("StaticBody2D/CollisionShape2D:disabled")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.20000002),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
[sub_resource type="Animation" id="Animation_3j3fx"]
resource_name = "opened"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("StaticBody2D/CollisionShape2D:disabled")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_u0hpk"]
_data = {
&"RESET": SubResource("Animation_fy1mf"),
&"close_door": SubResource("Animation_u0hpk"),
&"closed": SubResource("Animation_y44bh"),
&"open_door": SubResource("Animation_sugh4"),
&"opened": SubResource("Animation_3j3fx")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xbbsa"]
size = Vector2(32, 20)
[node name="LockedDoor" type="Node2D" unique_id=1609694242]
process_mode = 3
script = ExtResource("1_xbbsa")
key_item = ExtResource("2_fy1mf")
locked_audio = ExtResource("3_y44bh")
open_audio = ExtResource("4_3j3fx")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=176392408]
position = Vector2(32, -40)
texture = ExtResource("1_onbon")
hframes = 7
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1272712363]
collision_layer = 16
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=891832315]
position = Vector2(31, -31)
shape = SubResource("RectangleShape2D_onbon")
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=2014387433]
libraries/ = SubResource("AnimationLibrary_u0hpk")
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=281736276]
[node name="PersistentDataHandler" parent="." unique_id=843808896 instance=ExtResource("2_n53nc")]
[node name="InteractArea" type="Area2D" parent="." unique_id=1674837604]
position = Vector2(31, 0)
collision_layer = 0
collision_mask = 4
monitorable = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="InteractArea" unique_id=799601258]
shape = SubResource("RectangleShape2D_xbbsa")
debug_color = Color(0.64349115, 0.51821285, 0.21126384, 0.41960785)