1
- [gd_scene load_steps =14 format =2 ]
1
+ [gd_scene load_steps =21 format =2 ]
2
2
3
3
[ext_resource path ="res://Scripts/Pause.gd" type ="Script" id =1 ]
4
4
[ext_resource path ="res://Scenes/SceneTransitionRect.tscn" type ="PackedScene" id =2 ]
11
11
[ext_resource path ="res://Assets/Tileset.tres" type ="TileSet" id =9 ]
12
12
[ext_resource path ="res://Scenes/Interactables/Activator.tscn" type ="PackedScene" id =10 ]
13
13
[ext_resource path ="res://Assets/Sprites/Interactables/LightRays.png" type ="Texture" id =11 ]
14
+ [ext_resource path ="res://addons/gut/fonts/AnonymousPro-Regular.ttf" type ="DynamicFontData" id =12 ]
15
+ [ext_resource path ="res://addons/gut/fonts/AnonymousPro-Bold.ttf" type ="DynamicFontData" id =13 ]
16
+ [ext_resource path ="res://Scenes/LevelTimer.tscn" type ="PackedScene" id =15 ]
17
+ [ext_resource path ="res://Scripts/WinScreen.gd" type ="Script" id =16 ]
14
18
15
- [sub_resource type ="DynamicFont" id =1 ]
19
+ [sub_resource type ="DynamicFont" id =3 ]
20
+ size = 110
21
+ font_data = ExtResource ( 13 )
22
+
23
+ [sub_resource type ="DynamicFont" id =4 ]
24
+ size = 75
25
+ font_data = ExtResource ( 12 )
26
+
27
+ [sub_resource type ="DynamicFont" id =5 ]
28
+ size = 55
29
+ font_data = ExtResource ( 12 )
30
+
31
+ [sub_resource type ="DynamicFont" id =6 ]
16
32
size = 48
17
33
font_data = ExtResource ( 8 )
18
34
19
- [sub_resource type ="DynamicFont" id =2 ]
35
+ [sub_resource type ="DynamicFont" id =7 ]
20
36
size = 30
21
37
font_data = ExtResource ( 7 )
22
38
@@ -171,10 +187,95 @@ tile_data = PoolIntArray( -1179579, 0, 65538, -1179578, 0, 65538, -1179577, 0, 6
171
187
172
188
[node name ="LevelGoal" parent ="." instance =ExtResource ( 4 )]
173
189
position = Vector2 ( 16960 , -640 )
174
- sceneTransitionPath = NodePath ("../CanvasLayer/SceneTransitionRect " )
190
+ winScreenPath = NodePath ("../CanvasLayer/WinScreen " )
175
191
176
192
[node name ="CanvasLayer" type ="CanvasLayer" parent ="." ]
177
193
194
+ [node name ="WinScreen" type ="Control" parent ="CanvasLayer" ]
195
+ pause_mode = 2
196
+ visible = false
197
+ anchor_right = 1.0
198
+ anchor_bottom = 1.0
199
+ script = ExtResource ( 16 )
200
+ __meta__ = {
201
+ "_edit_use_anchors_" : false
202
+ }
203
+ pausePath = NodePath ("../Pause" )
204
+
205
+ [node name ="WinOverlay" type ="ColorRect" parent ="CanvasLayer/WinScreen" ]
206
+ anchor_right = 1.0
207
+ anchor_bottom = 1.0
208
+ color = Color ( 0 , 0 , 0 , 0.470588 )
209
+ __meta__ = {
210
+ "_edit_use_anchors_" : false
211
+ }
212
+
213
+ [node name ="Label" type ="Label" parent ="CanvasLayer/WinScreen" ]
214
+ anchor_left = 0.5
215
+ anchor_top = 0.5
216
+ anchor_right = 0.5
217
+ anchor_bottom = 0.5
218
+ margin_left = -512.0
219
+ margin_top = -340.0
220
+ margin_right = 513.0
221
+ margin_bottom = -124.0
222
+ custom_fonts/font = SubResource ( 3 )
223
+ text = "LEVEL CLEAR"
224
+ align = 1
225
+ valign = 1
226
+ __meta__ = {
227
+ "_edit_use_anchors_" : false
228
+ }
229
+
230
+ [node name ="Label2" type ="Label" parent ="CanvasLayer/WinScreen" ]
231
+ anchor_left = 0.5
232
+ anchor_top = 0.5
233
+ anchor_right = 0.5
234
+ anchor_bottom = 0.5
235
+ margin_left = -512.0
236
+ margin_top = -84.0
237
+ margin_right = 513.0
238
+ margin_bottom = 132.0
239
+ custom_fonts/font = SubResource ( 4 )
240
+ text = "TIME"
241
+ align = 1
242
+ valign = 1
243
+
244
+ [node name ="Control" parent ="CanvasLayer/WinScreen" instance =ExtResource ( 15 )]
245
+ pause_mode = 1
246
+ margin_top = 112.0
247
+ margin_bottom = 112.0
248
+
249
+ [node name ="Restart" type ="Button" parent ="CanvasLayer/WinScreen" ]
250
+ anchor_left = 0.5
251
+ anchor_top = 0.5
252
+ anchor_right = 0.5
253
+ anchor_bottom = 0.5
254
+ margin_left = -256.0
255
+ margin_top = 220.0
256
+ margin_right = 256.0
257
+ margin_bottom = 324.0
258
+ custom_fonts/font = SubResource ( 5 )
259
+ text = "RESTART"
260
+ __meta__ = {
261
+ "_edit_use_anchors_" : false
262
+ }
263
+
264
+ [node name ="Menu" type ="Button" parent ="CanvasLayer/WinScreen" ]
265
+ anchor_left = 0.5
266
+ anchor_top = 0.5
267
+ anchor_right = 0.5
268
+ anchor_bottom = 0.5
269
+ margin_left = -256.0
270
+ margin_top = 348.0
271
+ margin_right = 256.0
272
+ margin_bottom = 452.0
273
+ custom_fonts/font = SubResource ( 5 )
274
+ text = "MENU"
275
+ __meta__ = {
276
+ "_edit_use_anchors_" : false
277
+ }
278
+
178
279
[node name ="Pause" type ="Control" parent ="CanvasLayer" ]
179
280
pause_mode = 2
180
281
visible = false
@@ -207,14 +308,14 @@ __meta__ = {
207
308
[node name ="Pause" type ="Label" parent ="CanvasLayer/Pause/PauseOptions" ]
208
309
margin_right = 174.0
209
310
margin_bottom = 55.0
210
- custom_fonts/font = SubResource ( 1 )
311
+ custom_fonts/font = SubResource ( 6 )
211
312
text = "Paused"
212
313
213
314
[node name ="Resume" type ="Button" parent ="CanvasLayer/Pause/PauseOptions" ]
214
315
margin_top = 59.0
215
316
margin_right = 174.0
216
317
margin_bottom = 100.0
217
- custom_fonts/font = SubResource ( 2 )
318
+ custom_fonts/font = SubResource ( 7 )
218
319
text = "Resume"
219
320
flat = true
220
321
align = 0
@@ -223,7 +324,7 @@ align = 0
223
324
margin_top = 104.0
224
325
margin_right = 174.0
225
326
margin_bottom = 145.0
226
- custom_fonts/font = SubResource ( 2 )
327
+ custom_fonts/font = SubResource ( 7 )
227
328
text = "Menu"
228
329
flat = true
229
330
align = 0
@@ -232,7 +333,7 @@ align = 0
232
333
margin_top = 149.0
233
334
margin_right = 174.0
234
335
margin_bottom = 190.0
235
- custom_fonts/font = SubResource ( 2 )
336
+ custom_fonts/font = SubResource ( 7 )
236
337
text = "Restart"
237
338
flat = true
238
339
align = 0
@@ -241,7 +342,7 @@ align = 0
241
342
margin_top = 194.0
242
343
margin_right = 174.0
243
344
margin_bottom = 235.0
244
- custom_fonts/font = SubResource ( 2 )
345
+ custom_fonts/font = SubResource ( 7 )
245
346
text = "Exit"
246
347
flat = true
247
348
align = 0
@@ -255,7 +356,11 @@ margin_right = -253.11
255
356
margin_bottom = -149.68
256
357
rect_scale = Vector2 ( 12.5768 , 7.37932 )
257
358
359
+ [connection signal ="pressed" from ="CanvasLayer/WinScreen/Restart" to ="CanvasLayer/WinScreen" method ="_on_Restart_pressed" ]
360
+ [connection signal ="pressed" from ="CanvasLayer/WinScreen/Menu" to ="CanvasLayer/WinScreen" method ="_on_Menu_pressed" ]
258
361
[connection signal ="pressed" from ="CanvasLayer/Pause/PauseOptions/Resume" to ="CanvasLayer/Pause" method ="_on_Resume_pressed" ]
259
362
[connection signal ="pressed" from ="CanvasLayer/Pause/PauseOptions/Menu" to ="CanvasLayer/Pause" method ="_on_Menu_pressed" ]
260
363
[connection signal ="pressed" from ="CanvasLayer/Pause/PauseOptions/Restart" to ="CanvasLayer/Pause" method ="_on_Restart_pressed" ]
261
364
[connection signal ="pressed" from ="CanvasLayer/Pause/PauseOptions/Exit" to ="CanvasLayer/Pause" method ="_on_Exit_pressed" ]
365
+
366
+ [editable path ="CanvasLayer/WinScreen/Control" ]
0 commit comments