aboutsummaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-17 19:41:46 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-17 19:41:46 +0100
commitf75ee64e21f67b4f27404147aedaa63750058d5a (patch)
tree8e35f5b0ca986169e46ef1f90c3fdd951a9af113 /scenes
parenta7bda4264b45c0c64fd81ac91b4f1fbbc539e314 (diff)
wave
Diffstat (limited to 'scenes')
-rw-r--r--scenes/gui.tscn36
-rw-r--r--scenes/wave/timer_batch.tscn9
2 files changed, 43 insertions, 2 deletions
diff --git a/scenes/gui.tscn b/scenes/gui.tscn
index 38958a2..123d0ae 100644
--- a/scenes/gui.tscn
+++ b/scenes/gui.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=10 format=2]
+[gd_scene load_steps=11 format=2]
[ext_resource path="res://scripts/gui.gd" type="Script" id=1]
[ext_resource path="res://themes/DarkTheme/Dark.theme" type="Theme" id=2]
@@ -22,6 +22,15 @@ shadow_offset = Vector2( 1, 1 )
bg_color = Color( 0, 0, 0, 0.482353 )
border_width_top = 1
+[sub_resource type="StyleBoxFlat" id=6]
+bg_color = Color( 1, 0, 0, 0 )
+draw_center = false
+border_width_left = 5
+border_width_top = 5
+border_width_right = 5
+border_width_bottom = 5
+border_color = Color( 0.364706, 0, 0, 1 )
+
[node name="gui" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
@@ -149,6 +158,18 @@ __meta__ = {
"_edit_use_anchors_": false
}
+[node name="lives" type="Label" parent="top_bar/panel/resources/HBoxContainer"]
+margin_left = 208.0
+margin_top = 7.0
+margin_right = 277.4
+margin_bottom = 31.4
+custom_colors/font_color = Color( 1, 1, 1, 1 )
+text = "100 lives"
+valign = 1
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
[node name="editor_button" type="Button" parent="top_bar/panel"]
anchor_left = 1.0
anchor_right = 1.0
@@ -171,7 +192,7 @@ margin_top = 5.0
margin_right = -10.0
margin_bottom = -5.0
grow_horizontal = 0
-text = "Wave 3/10"
+text = "wave 3"
align = 1
valign = 1
__meta__ = {
@@ -308,6 +329,17 @@ __meta__ = {
"_edit_use_anchors_": false
}
+[node name="wave_ongoing_indicator" type="Panel" parent="."]
+anchor_right = 1.0
+anchor_bottom = 1.0
+margin_top = 41.0
+margin_bottom = -121.0
+mouse_filter = 2
+custom_styles/panel = SubResource( 6 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
[connection signal="button_down" from="top_bar/panel/editor_button" to="top_bar" method="_on_editor_button_down"]
[connection signal="pressed" from="top_bar/panel/wave_button" to="top_bar" method="_on_wave_button_pressed"]
[connection signal="button_up" from="bottom_bar/editor_bar/hbox/turrets" to="bottom_bar" method="_on_turrets_button_up"]
diff --git a/scenes/wave/timer_batch.tscn b/scenes/wave/timer_batch.tscn
new file mode 100644
index 0000000..22b201b
--- /dev/null
+++ b/scenes/wave/timer_batch.tscn
@@ -0,0 +1,9 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://scripts/spawner.gd" type="Script" id=1]
+
+[node name="timer_batch" type="Timer"]
+one_shot = true
+script = ExtResource( 1 )
+
+[connection signal="timeout" from="." to="." method="_on_timer_batch_timeout"]