✨ Ebb and flow
This commit is contained in:
28
scenes/ui/finish_screen.tscn
Normal file
28
scenes/ui/finish_screen.tscn
Normal file
@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dy51uqtr2ng32"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/finish_screen.gd" id="1_c1emt"]
|
||||
[ext_resource type="Theme" uid="uid://gh5a3no0ojkl" path="res://codingland.tres" id="1_l6ven"]
|
||||
|
||||
[node name="FinishScreen" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_l6ven")
|
||||
script = ExtResource("1_c1emt")
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 648.0
|
||||
|
||||
[node name="Title" type="Label" parent="Panel"]
|
||||
layout_mode = 0
|
||||
offset_top = 280.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 364.0
|
||||
theme_override_font_sizes/font_size = 64
|
||||
text = "Game Over"
|
||||
horizontal_alignment = 1
|
78
scenes/ui/stats_overlay.tscn
Normal file
78
scenes/ui/stats_overlay.tscn
Normal file
@ -0,0 +1,78 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cjam63kp5sg2o"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/stats_overlay.gd" id="1_iejg3"]
|
||||
[ext_resource type="Theme" uid="uid://gh5a3no0ojkl" path="res://codingland.tres" id="1_ne3m3"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bs475"]
|
||||
bg_color = Color(0.996078, 0.996078, 0.996078, 0.588235)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_rfnxc"]
|
||||
bg_color = Color(0.517647, 0.729412, 0.478431, 1)
|
||||
|
||||
[node name="StatsOverlay" type="Control" node_paths=PackedStringArray("survived_indicator", "wave_indicator", "wave_progress")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_ne3m3")
|
||||
script = ExtResource("1_iejg3")
|
||||
survived_indicator = NodePath("SurvivedControl/SurvivedTime")
|
||||
wave_indicator = NodePath("WaveControl/WaveCount")
|
||||
wave_progress = NodePath("WaveControl/WaveProgress")
|
||||
|
||||
[node name="SurvivedControl" type="Control" parent="."]
|
||||
anchors_preset = 0
|
||||
offset_top = 570.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 648.0
|
||||
|
||||
[node name="SurvivedCaption" type="Label" parent="SurvivedControl"]
|
||||
layout_mode = 0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 26.0
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "You survived"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="SurvivedTime" type="Label" parent="SurvivedControl"]
|
||||
layout_mode = 0
|
||||
offset_top = 20.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 65.0
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "0.0s"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="WaveControl" type="Control" parent="."]
|
||||
anchors_preset = 0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 648.0
|
||||
|
||||
[node name="WaveCaption" type="Label" parent="WaveControl"]
|
||||
layout_mode = 0
|
||||
offset_top = 14.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 40.0
|
||||
theme_override_font_sizes/font_size = 18
|
||||
text = "Wave"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="WaveCount" type="Label" parent="WaveControl"]
|
||||
layout_mode = 0
|
||||
offset_top = 34.0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 79.0
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "1"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="WaveProgress" type="ProgressBar" parent="WaveControl"]
|
||||
custom_minimum_size = Vector2(2.08165e-12, 10)
|
||||
layout_mode = 0
|
||||
offset_right = 1152.0
|
||||
offset_bottom = 8.0
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_bs475")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_rfnxc")
|
||||
show_percentage = false
|
Reference in New Issue
Block a user