title screen

This commit is contained in:
Michael Campbell 2026-03-04 14:52:35 -05:00
parent 2fd199612b
commit d464e0499b
12 changed files with 147 additions and 7 deletions

View file

@ -0,0 +1,10 @@
extends Control
func _on_play_pressed() -> void:
Level.start_game()
queue_free()
func _on_quit_pressed() -> void:
get_tree().quit()

View file

@ -0,0 +1 @@
uid://cmhdeukt6fwh8

View file

@ -0,0 +1,89 @@
[gd_scene format=3 uid="uid://c04ppsrjrkxb6"]
[ext_resource type="Script" uid="uid://cmhdeukt6fwh8" path="res://ui/title_screen/title_screen.gd" id="1_4kwlo"]
[sub_resource type="FontVariation" id="FontVariation_ffat2"]
variation_transform = Transform2D(1, -0.31, 0.37, 1.2, 0, 0)
spacing_glyph = 5
[sub_resource type="Theme" id="Theme_72buf"]
Label/constants/outline_size = 23
Label/font_sizes/font_size = 62
Label/fonts/font = SubResource("FontVariation_ffat2")
[node name="TitleScreen" type="Control" unique_id=786988901]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_4kwlo")
[node name="Play" type="Button" parent="." unique_id=1486558611]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -68.5
offset_top = 100.0
offset_right = 68.5
offset_bottom = 196.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 64
text = "Play"
[node name="Title" type="Control" parent="." unique_id=511532633]
anchors_preset = 0
offset_left = 44.0
offset_top = 36.0
offset_right = 84.0
offset_bottom = 76.0
[node name="Road" type="Label" parent="Title" unique_id=1072273524]
layout_mode = 0
offset_right = 226.0
offset_bottom = 118.0
theme = SubResource("Theme_72buf")
text = "Road"
[node name="Rage" type="Label" parent="Title" unique_id=388165898]
layout_mode = 0
offset_left = 63.0
offset_top = 66.0
offset_right = 289.0
offset_bottom = 184.0
theme = SubResource("Theme_72buf")
text = "Rage"
[node name="Tank" type="Label" parent="Title" unique_id=1229189390]
layout_mode = 0
offset_left = 117.0
offset_top = 144.0
offset_right = 343.0
offset_bottom = 262.0
theme = SubResource("Theme_72buf")
text = "Tank"
[node name="Quit" type="Button" parent="." unique_id=1707190783]
custom_minimum_size = Vector2(136.595, 0)
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -40.5
offset_top = -97.0
offset_right = 40.5
offset_bottom = -40.0
grow_horizontal = 2
grow_vertical = 0
theme_override_font_sizes/font_size = 35
text = "Quit"
[connection signal="pressed" from="Play" to="." method="_on_play_pressed"]
[connection signal="pressed" from="Quit" to="." method="_on_quit_pressed"]