-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode_2d.tscn
More file actions
153 lines (129 loc) · 5.84 KB
/
node_2d.tscn
File metadata and controls
153 lines (129 loc) · 5.84 KB
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
[gd_scene format=3 uid="uid://csgr58n1eo33t"]
[ext_resource type="Texture2D" uid="uid://d31w5oboh6k46" path="res://event_horizon.png" id="1_0e48y"]
[ext_resource type="Script" uid="uid://b8kb2stcpvvys" path="res://game_scene.gd" id="1_d21ai"]
[ext_resource type="Script" uid="uid://ceyisdiv6xod8" path="res://sprite_2d.gd" id="2_epypp"]
[ext_resource type="Texture2D" uid="uid://cuu0arpw80o3l" path="res://cursor.png" id="3_0hol4"]
[ext_resource type="Script" uid="uid://d3ad3j1c3ebne" path="res://arrow.gd" id="4_q6r6c"]
[ext_resource type="Script" uid="uid://bltkbvs81o3dj" path="res://space_2.gd" id="5_d2bti"]
[ext_resource type="Texture2D" uid="uid://cf2k8wk46iii" path="res://space.jpg" id="5_q6r6c"]
[ext_resource type="Script" uid="uid://b33dg2koe448b" path="res://space.gd" id="6_kdubu"]
[ext_resource type="Script" uid="uid://bm7o0xg2vc07u" path="res://event_horizon_collision.gd" id="8_rj586"]
[ext_resource type="AudioStream" uid="uid://dxa0sbhl7d65h" path="res://A View Adrift.wav" id="9_4d7sh"]
[ext_resource type="FontFile" uid="uid://de408ui6afqxj" path="res://mago1_lat_cyr.ttf" id="10_ir8iy"]
[ext_resource type="Texture2D" uid="uid://djq80whaepdjt" path="res://gameover.png" id="11_nr8wp"]
[ext_resource type="Script" uid="uid://co0yr1qnbjtvc" path="res://gameover_window.gd" id="12_d2bti"]
[ext_resource type="Texture2D" uid="uid://do2rosg647hs1" path="res://button_sprite.png" id="13_ta5nu"]
[ext_resource type="Texture2D" uid="uid://cguw1f5iutg0o" path="res://hover.png" id="14_flf07"]
[sub_resource type="CircleShape2D" id="CircleShape2D_rj586"]
[sub_resource type="CircleShape2D" id="CircleShape2D_d21ai"]
[node name="game_scene" type="Node2D" unique_id=1514031057]
script = ExtResource("1_d21ai")
[node name="arrow_area" type="Area2D" parent="." unique_id=429632955]
script = ExtResource("4_q6r6c")
[node name="arrow" type="Sprite2D" parent="arrow_area" unique_id=1916210420]
modulate = Color(0.5647059, 0.1764706, 1, 1)
scale = Vector2(2, 2)
texture = ExtResource("3_0hol4")
metadata/_edit_lock_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="arrow_area" unique_id=791596561]
shape = SubResource("CircleShape2D_rj586")
[node name="space2" type="Sprite2D" parent="." unique_id=339688834]
z_index = -11
texture = ExtResource("5_q6r6c")
script = ExtResource("5_d2bti")
[node name="space" type="Sprite2D" parent="." unique_id=1619855274]
z_index = -7
texture = ExtResource("5_q6r6c")
script = ExtResource("6_kdubu")
metadata/_edit_lock_ = true
[node name="Timer" type="Timer" parent="." unique_id=897852614]
wait_time = 3.0
[node name="Area2D" type="Area2D" parent="." unique_id=1236079201]
collision_mask = 2
[node name="event_horizon" type="Sprite2D" parent="Area2D" unique_id=632290495]
z_index = -1
position = Vector2(-0.99999994, 0)
scale = Vector2(5, 5)
texture = ExtResource("1_0e48y")
script = ExtResource("2_epypp")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=1010145272]
scale = Vector2(2.1, 2.1)
shape = SubResource("CircleShape2D_d21ai")
script = ExtResource("8_rj586")
[node name="backgroundmusic" type="AudioStreamPlayer" parent="." unique_id=119895264]
stream = ExtResource("9_4d7sh")
autoplay = true
[node name="Difficulty" type="Timer" parent="." unique_id=107758400]
wait_time = 5.0
[node name="Score" type="Timer" parent="." unique_id=8051681]
autostart = true
[node name="score_label" type="Label" parent="." unique_id=964714618]
offset_left = 1262.0
offset_top = -0.99999994
offset_right = 1317.2
offset_bottom = 25.0
scale = Vector2(5, 5)
theme_override_fonts/font = ExtResource("10_ir8iy")
text = "Score: 0"
[node name="gameover_window" type="Sprite2D" parent="." unique_id=1056451970]
visible = false
z_index = 5
position = Vector2(1005.00006, 533)
scale = Vector2(2.7336066, 2.11)
texture = ExtResource("11_nr8wp")
script = ExtResource("12_d2bti")
[node name="gameover_label" type="Label" parent="gameover_window" unique_id=1458693784]
offset_left = -108.0
offset_top = -187.0
offset_bottom = -164.0
scale = Vector2(2, 2)
theme_override_fonts/font = ExtResource("10_ir8iy")
text = "Game Over"
horizontal_alignment = 1
vertical_alignment = 1
metadata/_edit_use_anchors_ = true
metadata/_edit_lock_ = true
[node name="difficulty_score" type="Label" parent="gameover_window" unique_id=1193746114]
offset_left = -121.81711
offset_top = -12.322282
offset_right = 5.6091766
offset_bottom = 10.677718
scale = Vector2(2, 2)
theme_override_fonts/font = ExtResource("10_ir8iy")
text = "Level of Difficulty: "
horizontal_alignment = 1
vertical_alignment = 1
[node name="final_score" type="Label" parent="gameover_window" unique_id=351952127]
offset_left = -67.0
offset_top = -94.0
offset_right = 22.0
offset_bottom = -71.0
scale = Vector2(1.5, 1.5)
theme_override_fonts/font = ExtResource("10_ir8iy")
text = "Final Score:"
horizontal_alignment = 1
metadata/_edit_use_anchors_ = true
metadata/_edit_lock_ = true
[node name="back_button" type="TextureButton" parent="gameover_window" unique_id=1446454238]
offset_left = -97.30736
offset_top = 69.66827
offset_right = 97.69264
offset_bottom = 125.66827
texture_normal = ExtResource("13_ta5nu")
texture_hover = ExtResource("14_flf07")
stretch_mode = 0
[node name="back_label" type="Label" parent="gameover_window/back_button" unique_id=2142490778]
layout_mode = 0
offset_left = -9.0
offset_top = 13.0
offset_right = 100.0
offset_bottom = 36.0
scale = Vector2(2, 2)
theme_override_fonts/font = ExtResource("10_ir8iy")
text = "Back To Menu"
horizontal_alignment = 1
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[connection signal="finished" from="backgroundmusic" to="." method="_on_audio_stream_player_finished"]
[connection signal="timeout" from="Difficulty" to="." method="_on_difficulty_timeout"]
[connection signal="timeout" from="Score" to="." method="_on_score_timeout"]
[connection signal="pressed" from="gameover_window/back_button" to="." method="_on_back_button_pressed"]