cirnogodot/Scenes/Props/Fridge.tscn
2025-04-06 17:53:46 +02:00

106 lines
3.7 KiB
Text

[gd_scene load_steps=16 format=3 uid="uid://r70dfwgv51tw"]
[ext_resource type="Script" uid="uid://duhodrhcnoslh" path="res://Scripts/Interactables/Switch.cs" id="1_powf3"]
[ext_resource type="Texture2D" uid="uid://bs6gll1muttjt" path="res://Sprites/Props/Fridge.png" id="1_w2v7h"]
[ext_resource type="Script" uid="uid://d0a0o50j82eo6" path="res://Scripts/Activables/ScriptableBase.cs" id="3_wn4pw"]
[ext_resource type="Script" uid="uid://b5fesrd4lv8t1" path="res://Scripts/Resources/Events/EventResource.cs" id="4_12pos"]
[ext_resource type="Script" uid="uid://bwg12macnb0ll" path="res://Scripts/Resources/Events/UpdateCheckPointEvent.cs" id="5_k5rjk"]
[ext_resource type="FontFile" uid="uid://coek1e2q257pq" path="res://fonts/at01.ttf" id="6_k5rjk"]
[ext_resource type="Script" uid="uid://da3uje4601m8b" path="res://Scripts/Misc/CheckpointAnimation.cs" id="7_6hd6h"]
[ext_resource type="AudioStream" uid="uid://dg00h7f284kex" path="res://SFX/JFXR/Checkpoint.wav" id="8_3t7ov"]
[sub_resource type="AtlasTexture" id="AtlasTexture_w2v7h"]
atlas = ExtResource("1_w2v7h")
region = Rect2(0, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_powf3"]
atlas = ExtResource("1_w2v7h")
region = Rect2(16, 0, 16, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_wn4pw"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_w2v7h")
}],
"loop": false,
"name": &"Closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_powf3")
}],
"loop": false,
"name": &"Open",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_wn4pw"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wtdkd"]
size = Vector2(13.5, 19)
[sub_resource type="Resource" id="Resource_6hd6h"]
script = ExtResource("5_k5rjk")
Target = NodePath("../Marker2D")
WaitForCompletion = true
metadata/_custom_type_script = "uid://bwg12macnb0ll"
[sub_resource type="LabelSettings" id="LabelSettings_6hd6h"]
line_spacing = 1.0
font = ExtResource("6_k5rjk")
font_color = Color(0.28, 0.724, 1, 1)
outline_size = 4
outline_color = Color(0, 0, 0, 1)
[node name="Fridge" type="Area2D" node_paths=PackedStringArray("Target", "Targets") groups=["Interactable"]]
collision_layer = 4
collision_mask = 0
script = ExtResource("1_powf3")
Target = NodePath("Script")
Targets = [NodePath("Script"), NodePath("CheckpointAnimation")]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(1.495, 0)
sprite_frames = SubResource("SpriteFrames_wn4pw")
animation = &"Closed"
autoplay = "Closed"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_wn4pw")
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(1.8, 0)
collision_layer = 64
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2(-1.75, 0.5)
shape = SubResource("RectangleShape2D_wtdkd")
[node name="Script" type="Node2D" parent="."]
script = ExtResource("3_wn4pw")
Events = Array[ExtResource("4_12pos")]([SubResource("Resource_6hd6h")])
[node name="Marker2D" type="Marker2D" parent="."]
position = Vector2(0, 20)
[node name="Label" type="Label" parent="."]
offset_left = -23.0
offset_top = -23.0
offset_right = 23.0
text = "Checkpoint"
label_settings = SubResource("LabelSettings_6hd6h")
[node name="CheckpointAnimation" type="Node2D" parent="." node_paths=PackedStringArray("Sprite", "Label", "Sound")]
script = ExtResource("7_6hd6h")
Sprite = NodePath("../AnimatedSprite2D")
Label = NodePath("../Label")
Sound = NodePath("../AudioStreamPlayer2D")
LabelStartPosition = Vector2(-23, -16)
LabelEndPosition = Vector2(-23, -28)
LabelAnimationTime = 0.2
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("8_3t7ov")