-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tscn
107 lines (96 loc) · 3 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
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Background.png" type="Texture" id=1]
[ext_resource path="res://main.gd" type="Script" id=2]
[ext_resource path="res://enemy.tscn" type="PackedScene" id=3]
[ext_resource path="res://resources/wooden_sword.tres" type="Resource" id=4]
[ext_resource path="res://resources/melee_dps.tres" type="Resource" id=5]
[ext_resource path="res://resources/gorgoron.tres" type="Resource" id=6]
[ext_resource path="res://resources/hogger.tres" type="Resource" id=7]
[ext_resource path="res://resources/peruvion.tres" type="Resource" id=8]
[node name="Game" type="Node2D"]
script = ExtResource( 2 )
base_class = ExtResource( 5 )
base_item = ExtResource( 4 )
bosses = [ ExtResource( 7 ), ExtResource( 8 ), ExtResource( 6 ) ]
[node name="Timer" type="Timer" parent="."]
wait_time = 8.0
[node name="Background" type="Sprite" parent="."]
position = Vector2( 513.471, 230.918 )
scale = Vector2( 1.10261, 1.03603 )
texture = ExtResource( 1 )
[node name="Score" type="RichTextLabel" parent="."]
margin_left = 8.0
margin_top = 7.0
margin_right = 48.0
margin_bottom = 47.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Enemy" parent="." instance=ExtResource( 3 )]
position = Vector2( 255.69, 574.593 )
[node name="PopupMenu" type="PopupPanel" parent="."]
visible = true
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -255.5
margin_top = -109.5
margin_right = 255.5
margin_bottom = 109.5
popup_exclusive = true
__meta__ = {
"_edit_group_": true,
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="PopupMenu"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -251.5
margin_top = -105.5
margin_right = 251.5
margin_bottom = 105.5
grow_horizontal = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Game Over Text" type="Label" parent="PopupMenu/VBoxContainer"]
margin_left = 219.0
margin_right = 284.0
margin_bottom = 67.0
size_flags_horizontal = 4
size_flags_vertical = 7
text = "WIN/LOSE"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Restart Button" type="Button" parent="PopupMenu/VBoxContainer"]
margin_top = 71.0
margin_right = 503.0
margin_bottom = 138.0
size_flags_horizontal = 7
size_flags_vertical = 3
text = "Restart"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Back To Menu Button" type="Button" parent="PopupMenu/VBoxContainer"]
margin_top = 142.0
margin_right = 503.0
margin_bottom = 211.0
grow_horizontal = 0
grow_vertical = 0
size_flags_horizontal = 5
size_flags_vertical = 3
text = "Return to main menu"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="timeout" from="Timer" to="." method="_add_damage_allocator"]
[connection signal="died" from="Enemy" to="." method="_on_Enemy_died"]
[connection signal="pressed" from="PopupMenu/VBoxContainer/Restart Button" to="." method="_on_Restart_Button_pressed"]
[connection signal="pressed" from="PopupMenu/VBoxContainer/Back To Menu Button" to="." method="_on_Back_To_Menu_Button_pressed"]