-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
360 lines (299 loc) · 13.7 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
[gd_scene load_steps=35 format=3 uid="uid://ctfh5rdwvcfap"]
[ext_resource type="Shader" path="res://flowing_squares.gdshader" id="1_rtrpn"]
[ext_resource type="Script" path="res://main.gd" id="1_rw06d"]
[ext_resource type="PackedScene" uid="uid://dplwhdywt7ax" path="res://main_tilemap.tscn" id="3_5faoa"]
[ext_resource type="PackedScene" uid="uid://b5tvsd06gu6sx" path="res://enemies/enemy.tscn" id="4_i0gwi"]
[ext_resource type="Resource" uid="uid://belbro1hfjjh3" path="res://playerinventory.tres" id="4_vxhr8"]
[ext_resource type="PackedScene" uid="uid://c1bhreaem7qlk" path="res://player.tscn" id="5_605dv"]
[ext_resource type="PackedScene" uid="uid://bteu1klgy2kto" path="res://interactibles/door_2x.tscn" id="5_gs8tt"]
[ext_resource type="Resource" uid="uid://dba0oafttyvuv" path="res://quickinventory.tres" id="6_pnrst"]
[ext_resource type="PackedScene" uid="uid://c0yc3rxh2tqpx" path="res://interactibles/terminal.tscn" id="6_rq1bm"]
[ext_resource type="PackedScene" uid="uid://bax3ydx4vf0i5" path="res://items/item_world.tscn" id="7_n8dxg"]
[ext_resource type="Resource" uid="uid://djrjkdayl2olj" path="res://items/side_cutters.tres" id="9_bamd0"]
[ext_resource type="PackedScene" uid="uid://btv4v1ibnrmla" path="res://UI/Inventory.tscn" id="10_vg8hb"]
[ext_resource type="Texture2D" uid="uid://dfvjd8p1p1lc3" path="res://assets/noise.jpg" id="12_3inrd"]
[ext_resource type="Script" path="res://inventory_slot.gd" id="12_26g80"]
[ext_resource type="Resource" uid="uid://c1rm8ll7i4il7" path="res://items/wires.tres" id="14_vb2n3"]
[ext_resource type="PackedScene" uid="uid://cfhmk4tjehyse" path="res://interactibles/desk.tscn" id="16_5p6vc"]
[ext_resource type="PackedScene" uid="uid://c7fsimpojygjv" path="res://interactibles/object.tscn" id="16_h2lng"]
[ext_resource type="Resource" uid="uid://c7oecn17tljh4" path="res://items/big_wire.tres" id="18_k8fjm"]
[ext_resource type="Resource" uid="uid://cpfp0qm7rdmoc" path="res://items/junk.tres" id="18_rwox7"]
[ext_resource type="Script" path="res://inventory.gd" id="19_gesh8"]
[ext_resource type="AudioStream" uid="uid://w832muqvnwm8" path="res://music/Unstablenew.Ogg" id="21_nvl1y"]
[ext_resource type="AudioStream" uid="uid://b0pgg4rpvd60p" path="res://music/Astraldrone_less.ogg" id="22_pxttp"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ew5hl"]
shader = ExtResource("1_rtrpn")
shader_parameter/SCALE = 1.3
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_270hh"]
size = Vector2(2048, 2048)
[sub_resource type="Resource" id="Resource_kfjae"]
script = ExtResource("12_26g80")
item = ExtResource("9_bamd0")
count = 1
[sub_resource type="Resource" id="Resource_ha1qs"]
script = ExtResource("12_26g80")
item = ExtResource("18_rwox7")
count = 1
[sub_resource type="Resource" id="Resource_7lir4"]
script = ExtResource("12_26g80")
item = ExtResource("14_vb2n3")
count = 1
[sub_resource type="Resource" id="Resource_g6cdm"]
script = ExtResource("19_gesh8")
items = Array[ExtResource("12_26g80")]([SubResource("Resource_ha1qs"), SubResource("Resource_7lir4")])
[sub_resource type="Resource" id="Resource_2qi1w"]
script = ExtResource("19_gesh8")
items = Array[ExtResource("12_26g80")]([])
[sub_resource type="Resource" id="Resource_3daxw"]
script = ExtResource("19_gesh8")
items = Array[ExtResource("12_26g80")]([])
[sub_resource type="Resource" id="Resource_boupi"]
script = ExtResource("12_26g80")
item = ExtResource("18_k8fjm")
count = 3
[sub_resource type="Resource" id="Resource_grmg7"]
script = ExtResource("19_gesh8")
items = Array[ExtResource("12_26g80")]([SubResource("Resource_boupi")])
[sub_resource type="Resource" id="Resource_3funf"]
script = ExtResource("12_26g80")
item = ExtResource("18_rwox7")
count = 10
[sub_resource type="Resource" id="Resource_lkee5"]
script = ExtResource("19_gesh8")
items = Array[ExtResource("12_26g80")]([SubResource("Resource_3funf")])
[node name="main" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_rw06d")
[node name="WorldBackground" type="CanvasLayer" parent="."]
layer = -1
[node name="TextureRect" type="TextureRect" parent="WorldBackground"]
material = SubResource("ShaderMaterial_ew5hl")
anchors_preset = 10
anchor_right = 1.0
offset_left = 0.333333
offset_right = 0.333374
offset_bottom = 2304.0
grow_horizontal = 2
texture = SubResource("PlaceholderTexture2D_270hh")
expand_mode = 5
[node name="World" type="Node2D" parent="."]
y_sort_enabled = true
scale = Vector2(3, 3)
[node name="TileMap" parent="World" instance=ExtResource("3_5faoa")]
[node name="Enemy" parent="World" instance=ExtResource("4_i0gwi")]
position = Vector2(366, 132)
health = 20.0
hostile_towards = "enemies"
[node name="Enemy2" parent="World" instance=ExtResource("4_i0gwi")]
position = Vector2(300, 200)
health = 2.0
stationary = false
hostile_towards = "enemies"
[node name="Player" parent="World" instance=ExtResource("5_605dv")]
[node name="Terminal" parent="World" instance=ExtResource("6_rq1bm")]
position = Vector2(206.667, 119)
[node name="Door-0-0" parent="World" instance=ExtResource("5_gs8tt")]
position = Vector2(256.333, 111.667)
[node name="Item_Pliers" parent="World" instance=ExtResource("7_n8dxg")]
position = Vector2(143.667, 176.333)
itemslot = SubResource("Resource_kfjae")
[node name="Object" parent="World" instance=ExtResource("16_h2lng")]
position = Vector2(337.667, 112.667)
[node name="Desk" parent="World" instance=ExtResource("16_5p6vc")]
position = Vector2(346, -32)
disabled = true
loot = SubResource("Resource_g6cdm")
[node name="Desk2" parent="World" instance=ExtResource("16_5p6vc")]
position = Vector2(346, 0)
disabled = true
loot = SubResource("Resource_2qi1w")
[node name="Desk3" parent="World" instance=ExtResource("16_5p6vc")]
position = Vector2(346, 32)
disabled = true
loot = SubResource("Resource_3daxw")
[node name="Desk4" parent="World" instance=ExtResource("16_5p6vc")]
position = Vector2(166, -32)
[node name="Desk5" parent="World" instance=ExtResource("16_5p6vc")]
position = Vector2(166, 0)
[node name="Desk6" parent="World" instance=ExtResource("16_5p6vc")]
position = Vector2(166, 32)
loot = SubResource("Resource_grmg7")
[node name="Desk8" parent="World" instance=ExtResource("16_5p6vc")]
position = Vector2(258.333, 4.66667)
loot = SubResource("Resource_lkee5")
[node name="HUD" type="CanvasLayer" parent="."]
[node name="TextBox" type="VBoxContainer" parent="HUD"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="S2" type="Control" parent="HUD/TextBox"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 6.0
mouse_filter = 2
[node name="HBoxContainer" type="HBoxContainer" parent="HUD/TextBox"]
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
[node name="S3" type="Control" parent="HUD/TextBox/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
size_flags_stretch_ratio = 2.5
mouse_filter = 2
[node name="MarginContainer" type="MarginContainer" parent="HUD/TextBox/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
theme_override_constants/margin_left = 4
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 4
[node name="PanelContainer" type="PanelContainer" parent="HUD/TextBox/HBoxContainer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="RichTextLabel" type="RichTextLabel" parent="HUD/TextBox/HBoxContainer/MarginContainer/PanelContainer"]
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
theme_override_font_sizes/normal_font_size = 24
theme_override_font_sizes/bold_font_size = 24
theme_override_font_sizes/italics_font_size = 24
theme_override_font_sizes/bold_italics_font_size = 24
theme_override_font_sizes/mono_font_size = 24
text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec orci nisl, malesuada eu odio ut, molestie hendrerit lectus. Suspendisse potenti.
Nulla dignissim ut ante eu aliquet.
Aliquam suscipit venenatis eros, nec dictum metus consequat a. Aliquam tristique ante lacus, vitae semper dolor ornare vitae.
Pellentesque faucibus, purus pellentesque tempor scelerisque, quam augue lacinia leo, nec elementum ante sapien ac magna. Sed commodo vel nunc ut mollis.
Pellentesque est sapien, porttitor at bibendum sed, porta in nunc.
Curabitur convallis, elit vel mattis fermentum, lectus odio imperdiet orci, quis egestas massa ligula et tortor.
Proin dapibus, orci id efficitur posuere, nisl nisi mattis odio, sed auctor erat nibh et dui. Nulla convallis arcu a convallis blandit.
In iaculis, mauris et pharetra facilisis, nulla sapien ultrices ex, quis cursus elit arcu vel mauris. "
scroll_following = true
shortcut_keys_enabled = false
metadata/myname = "hud_textbox"
[node name="QuickInventory" type="VBoxContainer" parent="HUD"]
z_index = 1000
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="S" type="Control" parent="HUD/QuickInventory"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 6.0
mouse_filter = 2
[node name="InventoryItems" parent="HUD/QuickInventory" instance=ExtResource("10_vg8hb")]
layout_mode = 2
size_flags_vertical = 6
size_flags_stretch_ratio = 1.0
inv = ExtResource("6_pnrst")
metadata/myname = "hud_quick_inventory"
[node name="FullInventory" type="HBoxContainer" parent="HUD"]
visible = false
z_index = 1000
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="VBoxContainer" type="VBoxContainer" parent="HUD/FullInventory"]
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
[node name="HBoxContainer" type="HBoxContainer" parent="HUD/FullInventory/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 8.0
mouse_filter = 2
[node name="S" type="Control" parent="HUD/FullInventory/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
[node name="HBoxContainer" type="HBoxContainer" parent="HUD/FullInventory/VBoxContainer/HBoxContainer"]
layout_mode = 2
[node name="InventoryItems" parent="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer" instance=ExtResource("10_vg8hb")]
layout_mode = 2
inv = ExtResource("4_vxhr8")
metadata/myname = "hud_full_inventory"
[node name="S2" type="Control" parent="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(64, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.2
mouse_filter = 2
[node name="PanelContainer" type="PanelContainer" parent="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 4
[node name="MarginContainer" type="MarginContainer" parent="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer/PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="TextureRect" type="TextureRect" parent="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer/PanelContainer/MarginContainer"]
custom_minimum_size = Vector2(200, 300)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
mouse_filter = 2
texture = ExtResource("12_3inrd")
expand_mode = 1
[node name="S3" type="Control" parent="HUD/FullInventory/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
mouse_filter = 2
[node name="S" type="Control" parent="HUD/FullInventory/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 2
[node name="MousePosition" type="Control" parent="HUD"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
mouse_filter = 2
[node name="StartMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource("21_nvl1y")
volume_db = -10.892
autoplay = true
[node name="timeout" type="Timer" parent="StartMusic"]
wait_time = 20.0
one_shot = true
autostart = true
[node name="fadeout" type="Timer" parent="StartMusic/timeout"]
wait_time = 6.0
one_shot = true
[node name="BackgroundMusic" type="AudioStreamPlayer" parent="."]
stream = ExtResource("22_pxttp")
volume_db = -22.72
[connection signal="do_toggle" from="World/Terminal" to="World/Door-0-0" method="_on_do_toggle"]
[connection signal="do_activate" from="World/Desk8" to="World/Door-0-0" method="_on_do_activate"]
[connection signal="do_deactivate" from="World/Desk8" to="World/Door-0-0" method="_on_do_deactivate"]
[connection signal="mouse_entered" from="HUD/TextBox/HBoxContainer/MarginContainer/PanelContainer" to="." method="_on_ui_mouse_entered"]
[connection signal="mouse_exited" from="HUD/TextBox/HBoxContainer/MarginContainer/PanelContainer" to="." method="_on_ui_mouse_exited"]
[connection signal="mouse_entered" from="HUD/QuickInventory/InventoryItems" to="." method="_on_ui_mouse_entered"]
[connection signal="mouse_exited" from="HUD/QuickInventory/InventoryItems" to="." method="_on_ui_mouse_exited"]
[connection signal="mouse_entered" from="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer/InventoryItems" to="." method="_on_ui_mouse_entered"]
[connection signal="mouse_exited" from="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer/InventoryItems" to="." method="_on_ui_mouse_exited"]
[connection signal="mouse_entered" from="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer/PanelContainer" to="." method="_on_ui_mouse_entered"]
[connection signal="mouse_exited" from="HUD/FullInventory/VBoxContainer/HBoxContainer/HBoxContainer/PanelContainer" to="." method="_on_ui_mouse_exited"]
[connection signal="timeout" from="StartMusic/timeout" to="." method="_on_StartMusic_timeout"]