-
Notifications
You must be signed in to change notification settings - Fork 0
/
portal.tscn
188 lines (159 loc) · 6.65 KB
/
portal.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
[gd_scene load_steps=15 format=3 uid="uid://bpdlhgmmoy15j"]
[ext_resource type="Script" path="res://portal.gd" id="1_gin5e"]
[ext_resource type="Texture2D" uid="uid://jhqp07488shd" path="res://portal.png" id="1_ouc00"]
[ext_resource type="Resource" uid="uid://jelef2wcbg1y" path="res://items/craftable/craftable_glass.tres" id="4_wkb07"]
[ext_resource type="Resource" uid="uid://dtncpslua7qng" path="res://items/craftable/craftable_fiber.tres" id="5_xneja"]
[ext_resource type="Resource" uid="uid://dqrryio8vayk3" path="res://items/craftable/craftable_fiber_plus.tres" id="6_egu8q"]
[ext_resource type="Resource" uid="uid://c37trtlbwvuqw" path="res://items/upgrades/tank1.tres" id="6_qu4o5"]
[ext_resource type="Resource" uid="uid://sq48gs8mkgt1" path="res://items/upgrades/speed1.tres" id="7_6oinr"]
[ext_resource type="Resource" uid="uid://m36ajpsksv30" path="res://items/craftable/craftable_glass_plus.tres" id="7_b8jhj"]
[ext_resource type="PackedScene" uid="uid://dtntstrceesaa" path="res://summon_button.tscn" id="7_yaqxb"]
[ext_resource type="Resource" uid="uid://c8mwfknfyiak1" path="res://items/craftable/craftable_fiber_glass.tres" id="8_lbr7f"]
[ext_resource type="Resource" uid="uid://7jxu8rxe5bs4" path="res://items/upgrades/pack1.tres" id="11_1e8j0"]
[sub_resource type="Animation" id="Animation_tfgl8"]
length = 0.5
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite2D:region_rect")
tracks/0/interp = 0
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Rect2(2, 2, 27, 33), Rect2(60, 2, 23, 33), Rect2(31, 37, 23, 33), Rect2(31, 2, 27, 33), Rect2(2, 37, 27, 31)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Sprite2D:offset")
tracks/1/interp = 0
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Vector2(0.5, 1.5), Vector2(0.5, 1.5), Vector2(0.5, 1.5), Vector2(0.5, 1.5), Vector2(0.5, 2.5)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_83tn8"]
_data = {
"idle": SubResource("Animation_tfgl8")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_omgtu"]
size = Vector2(74, 73)
[node name="Portal" type="Node2D" node_paths=PackedStringArray("summon_button_containers")]
z_index = -1
position = Vector2(-222, -26)
script = ExtResource("1_gin5e")
summon_button_containers = [NodePath("UI/SummonMenu/VBoxContainer/MaterialsContainer"), NodePath("UI/SummonMenu/VBoxContainer/UpgradesContainer"), NodePath("UI/SummonMenu/VBoxContainer/AdvancedMaterialsContainer")]
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -6)
scale = Vector2(2, 2)
texture = ExtResource("1_ouc00")
offset = Vector2(0.5, 1.5)
region_enabled = true
region_rect = Rect2(2, 2, 27, 33)
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_83tn8")
}
autoplay = "idle"
[node name="UI" type="ColorRect" parent="."]
z_index = 4
offset_left = -170.0
offset_top = -188.0
offset_bottom = -100.0
scale = Vector2(2, 2)
mouse_filter = 2
color = Color(0, 0, 0, 0.784314)
[node name="SummonMenu" type="Control" parent="UI"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="Label" type="Label" parent="UI/SummonMenu"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 13.0
grow_horizontal = 2
text = "Summon Recipes"
horizontal_alignment = 1
[node name="Click" type="Label" parent="UI/SummonMenu"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_top = 73.0
offset_bottom = 86.0
grow_horizontal = 2
text = "Click To Summon"
horizontal_alignment = 1
[node name="VBoxContainer" type="VBoxContainer" parent="UI/SummonMenu"]
layout_mode = 0
offset_left = 34.0
offset_top = 7.0
offset_right = 166.0
offset_bottom = 83.0
mouse_filter = 2
theme_override_constants/separation = 1
alignment = 1
[node name="MaterialsContainer" type="HBoxContainer" parent="UI/SummonMenu/VBoxContainer"]
layout_mode = 2
mouse_filter = 2
[node name="Label" type="Label" parent="UI/SummonMenu/VBoxContainer/MaterialsContainer"]
custom_minimum_size = Vector2(40, 0)
layout_mode = 2
text = "Materials"
vertical_alignment = 1
[node name="SummonButton4" parent="UI/SummonMenu/VBoxContainer/MaterialsContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("5_xneja")
[node name="SummonButton3" parent="UI/SummonMenu/VBoxContainer/MaterialsContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("4_wkb07")
[node name="AdvancedMaterialsContainer" type="HBoxContainer" parent="UI/SummonMenu/VBoxContainer"]
layout_mode = 2
mouse_filter = 2
[node name="Label" type="Label" parent="UI/SummonMenu/VBoxContainer/AdvancedMaterialsContainer"]
custom_minimum_size = Vector2(40, 0)
layout_mode = 2
text = "Advanced"
[node name="SummonButton5" parent="UI/SummonMenu/VBoxContainer/AdvancedMaterialsContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("6_egu8q")
[node name="SummonButton6" parent="UI/SummonMenu/VBoxContainer/AdvancedMaterialsContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("7_b8jhj")
[node name="SummonButton7" parent="UI/SummonMenu/VBoxContainer/AdvancedMaterialsContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("8_lbr7f")
[node name="UpgradesContainer" type="HBoxContainer" parent="UI/SummonMenu/VBoxContainer"]
layout_mode = 2
mouse_filter = 2
[node name="Label" type="Label" parent="UI/SummonMenu/VBoxContainer/UpgradesContainer"]
custom_minimum_size = Vector2(40, 0)
layout_mode = 2
text = "Upgrades"
[node name="SummonButton2" parent="UI/SummonMenu/VBoxContainer/UpgradesContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("6_qu4o5")
[node name="SummonButton3" parent="UI/SummonMenu/VBoxContainer/UpgradesContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("7_6oinr")
[node name="SummonButton4" parent="UI/SummonMenu/VBoxContainer/UpgradesContainer" instance=ExtResource("7_yaqxb")]
layout_mode = 2
item = ExtResource("11_1e8j0")
[node name="Area2D" type="Area2D" parent="."]
visible = false
collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(2, -7.5)
shape = SubResource("RectangleShape2D_omgtu")
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]