2023-08-05 23:50:08 -07:00
|
|
|
[gd_scene load_steps=11 format=3 uid="uid://bs6xuujve2tsf"]
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Entities/DynamicDoorSwitch.cs" id="1_78qab"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dldnp8eunxj3q" path="res://BoundingBoxes/InteractionTrigger.tscn" id="2_7j8p7"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://88iqlixjutsn" path="res://Assets/Sprites/Props/switch.png" id="3_pgkt4"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://djs15wmc7c77f" path="res://Assets/Sounds/switch-on.wav" id="4_cxkmr"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://dryqvdw6cffvf" path="res://Assets/Sounds/switch-off.wav" id="5_8lkd0"]
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_1i8i0"]
|
|
|
|
radius = 12.0
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_jkd42"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0]
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_rntmq"]
|
|
|
|
resource_name = "off"
|
|
|
|
length = 0.25
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [0]
|
|
|
|
}
|
|
|
|
tracks/1/type = "audio"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("AudioStreamPlayer2D")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"clips": [{
|
|
|
|
"end_offset": 0.25,
|
|
|
|
"start_offset": 0.0,
|
|
|
|
"stream": ExtResource("5_8lkd0")
|
|
|
|
}],
|
|
|
|
"times": PackedFloat32Array(0)
|
|
|
|
}
|
|
|
|
tracks/1/use_blend = true
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_0yjbt"]
|
|
|
|
resource_name = "on"
|
|
|
|
length = 0.25
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [1]
|
|
|
|
}
|
|
|
|
tracks/1/type = "audio"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath("AudioStreamPlayer2D")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"clips": [{
|
|
|
|
"end_offset": 0.0,
|
|
|
|
"start_offset": 0.0,
|
|
|
|
"stream": ExtResource("4_cxkmr")
|
|
|
|
}],
|
|
|
|
"times": PackedFloat32Array(0)
|
|
|
|
}
|
|
|
|
tracks/1/use_blend = true
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_6ywhx"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_jkd42"),
|
|
|
|
"off": SubResource("Animation_rntmq"),
|
|
|
|
"on": SubResource("Animation_0yjbt")
|
|
|
|
}
|
|
|
|
|
2023-08-06 01:07:30 -07:00
|
|
|
[node name="ArenaDoorSwitch" type="StaticBody2D" node_paths=PackedStringArray("InteractionTrigger")]
|
2023-08-05 23:50:08 -07:00
|
|
|
script = ExtResource("1_78qab")
|
2023-08-06 01:07:30 -07:00
|
|
|
InteractionTrigger = NodePath("InteractionTrigger")
|
2023-08-07 02:38:51 -07:00
|
|
|
VisibleOnToggle = [null]
|
2023-08-05 23:50:08 -07:00
|
|
|
|
|
|
|
[node name="InteractionTrigger" parent="." instance=ExtResource("2_7j8p7")]
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" parent="InteractionTrigger" index="0"]
|
|
|
|
shape = SubResource("CircleShape2D_1i8i0")
|
|
|
|
|
|
|
|
[node name="Popup" parent="InteractionTrigger" index="1"]
|
2023-08-06 01:07:30 -07:00
|
|
|
offset_top = -38.0
|
2023-08-05 23:50:08 -07:00
|
|
|
offset_bottom = -8.0
|
|
|
|
|
2023-08-06 01:07:30 -07:00
|
|
|
[node name="Label" parent="InteractionTrigger/Popup" index="0"]
|
|
|
|
text = "Activate"
|
|
|
|
|
2023-08-05 23:50:08 -07:00
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
2024-07-11 16:31:33 -07:00
|
|
|
position = Vector2(0, -4)
|
2023-08-05 23:50:08 -07:00
|
|
|
texture = ExtResource("3_pgkt4")
|
|
|
|
centered = false
|
|
|
|
offset = Vector2(-2, -8)
|
|
|
|
hframes = 2
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_6ywhx")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
|
|
|
|
|
|
[editable path="InteractionTrigger"]
|