mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
142 lines
4.3 KiB
Text
142 lines
4.3 KiB
Text
[gd_scene load_steps=20 format=3 uid="uid://bc64lr3vlwchq"]
|
|
|
|
[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_e61bg"]
|
|
[ext_resource type="Texture2D" uid="uid://dwcjixrhq4cdv" path="res://Sprites/DoorVertical.png" id="1_vdvtb"]
|
|
[ext_resource type="Script" uid="uid://bbuhaam28lwld" path="res://Scripts/Components/Actors/DoorSpriteComponent.cs" id="3_076sv"]
|
|
[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="3_gt5vd"]
|
|
[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="4_076sv"]
|
|
[ext_resource type="Script" uid="uid://crpkvxepkcrir" path="res://Scripts/Components/Actors/ForceFieldCollisionDisabler.cs" id="4_vbd6u"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mbysk"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(0, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_cswit"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(48, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5twlp"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(32, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_appi3"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(16, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_qf4nm"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(0, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_mvjy4"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(48, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hqwo7"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(0, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fjrcg"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(16, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_pjqv0"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(32, 0, 16, 48)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6brcl"]
|
|
atlas = ExtResource("1_vdvtb")
|
|
region = Rect2(48, 0, 16, 48)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_keeml"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mbysk")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Closed",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_cswit")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5twlp")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_appi3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_qf4nm")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Closing",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_mvjy4")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Open",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_hqwo7")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fjrcg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_pjqv0")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6brcl")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Opening",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0wg11"]
|
|
size = Vector2(8, 48)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
|
|
size = Vector2(8, 48)
|
|
|
|
[node name="VerticalDoor" type="Area2D" groups=["Solid"]]
|
|
collision_layer = 64
|
|
collision_mask = 154
|
|
script = ExtResource("1_e61bg")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_keeml")
|
|
animation = &"Closing"
|
|
script = ExtResource("3_076sv")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." node_paths=PackedStringArray("_door")]
|
|
shape = SubResource("RectangleShape2D_0wg11")
|
|
script = ExtResource("4_vbd6u")
|
|
_door = NodePath("..")
|
|
|
|
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
|
collision_layer = 64
|
|
collision_mask = 10
|
|
gravity_scale = 0.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" node_paths=PackedStringArray("_door")]
|
|
shape = SubResource("RectangleShape2D_f2rl6")
|
|
script = ExtResource("4_vbd6u")
|
|
_door = NodePath("../..")
|
|
|
|
[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
|
|
position = Vector2(0, 1)
|
|
stream = ExtResource("3_gt5vd")
|
|
max_distance = 200.0
|
|
|
|
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("4_076sv")
|
|
max_distance = 200.0
|