248 lines
7.2 KiB
Plaintext
248 lines
7.2 KiB
Plaintext
[gd_scene format=3 uid="uid://ca44wdgnsovkt"]
|
|
|
|
[ext_resource type="Script" uid="uid://dj8hud3qb815u" path="res://interactables/treasure_chest/treasure_chest.gd" id="1_opwty"]
|
|
[ext_resource type="Texture2D" uid="uid://belvmab75wgor" path="res://interactables/treasure_chest/treasure-chest.png" id="2_rolan"]
|
|
[ext_resource type="Texture2D" uid="uid://dxf00vjmse6ab" path="res://items/sprites/items.png" id="3_xjfm2"]
|
|
[ext_resource type="AudioStream" uid="uid://dq3fm4jon368t" path="res://interactables/treasure_chest/treasure-open.wav" id="4_wqj8h"]
|
|
[ext_resource type="PackedScene" uid="uid://dqwuowiyehr7d" path="res://general/persistent_data/persistent_data_handler.tscn" id="5_5t0pk"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wqj8h"]
|
|
atlas = ExtResource("3_xjfm2")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="Animation" id="Animation_5t0pk"]
|
|
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]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("ItemSprite:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("ItemSprite:position")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, -8)]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("ItemSprite:modulate")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_0epee"]
|
|
resource_name = "closed"
|
|
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 = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("ItemSprite:visible")
|
|
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_icwpr"]
|
|
resource_name = "open_chest"
|
|
length = 1.5
|
|
step = 0.1
|
|
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, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [0, 1]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("ItemSprite:visible")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [false, true]
|
|
}
|
|
tracks/2/type = "audio"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("AudioStreamPlayer2D")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"clips": [{
|
|
"end_offset": 0.0,
|
|
"start_offset": 0.0,
|
|
"stream": ExtResource("4_wqj8h")
|
|
}],
|
|
"times": PackedFloat32Array(0.1)
|
|
}
|
|
tracks/2/use_blend = true
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("ItemSprite:position")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0.1, 0.3, 0.5, 1.5),
|
|
"transitions": PackedFloat32Array(0.5, -2, 2, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, -8), Vector2(0, -48), Vector2(0, -18), Vector2(0, -18)]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("ItemSprite:modulate")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0.2, 0.3, 0.5, 1, 1.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1), Color(1.353256, 1.353256, 1.353256, 1), Color(1, 1, 1, 1), Color(1.353256, 1.353256, 1.353256, 1), Color(1.353256, 1.353256, 1.353256, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_twix2"]
|
|
resource_name = "opened"
|
|
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 = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("ItemSprite:visible")
|
|
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="AnimationLibrary" id="AnimationLibrary_yw2ot"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_5t0pk"),
|
|
&"closed": SubResource("Animation_0epee"),
|
|
&"open_chest": SubResource("Animation_icwpr"),
|
|
&"opened": SubResource("Animation_twix2")
|
|
}
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5t0pk"]
|
|
size = Vector2(32, 16)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xjfm2"]
|
|
size = Vector2(48, 26)
|
|
|
|
[node name="TreasureChest" type="Node2D" unique_id=477439269]
|
|
process_mode = 3
|
|
script = ExtResource("1_opwty")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=521742318]
|
|
position = Vector2(0, -8)
|
|
texture = ExtResource("2_rolan")
|
|
hframes = 2
|
|
|
|
[node name="ItemSprite" type="Sprite2D" parent="." unique_id=1824118910]
|
|
position = Vector2(0, -8)
|
|
texture = SubResource("AtlasTexture_wqj8h")
|
|
|
|
[node name="Label" type="Label" parent="ItemSprite" unique_id=193055326]
|
|
offset_left = 8.0
|
|
offset_top = -8.0
|
|
offset_right = 48.0
|
|
offset_bottom = 15.0
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 4
|
|
theme_override_font_sizes/font_size = 10
|
|
text = "x99"
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=629460590]
|
|
libraries/ = SubResource("AnimationLibrary_yw2ot")
|
|
autoplay = &"closed"
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=54490691]
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1307513908]
|
|
collision_layer = 16
|
|
collision_mask = 0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1422331012]
|
|
position = Vector2(0, 8)
|
|
shape = SubResource("RectangleShape2D_5t0pk")
|
|
|
|
[node name="Area2D" type="Area2D" parent="." unique_id=572471651]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=145918165]
|
|
position = Vector2(0, 8)
|
|
shape = SubResource("RectangleShape2D_xjfm2")
|
|
debug_color = Color(5.583167e-06, 0.6433983, 0.3063715, 0.41960785)
|
|
|
|
[node name="IsOpen" parent="." unique_id=2132709116 instance=ExtResource("5_5t0pk")]
|