Pong/Scenes/MainMenu.tscn
Fries f84479e03a make a main menu and score system
i added a main menu scene and a score system that is written in GDScript instead of C# for a change. the WallManager, the thing that detects collisions, calls the score method on the ScoreManager.
2023-05-19 19:42:56 -07:00

29 lines
769 B
Text

[gd_scene load_steps=3 format=3 uid="uid://0vkrkvlevwkj"]
[ext_resource type="Script" path="res://Scripts/Managers/MainMenuManager.cs" id="1_tuygx"]
[sub_resource type="LabelSettings" id="LabelSettings_vv6u3"]
font_size = 64
[node name="MainMenu" type="VBoxContainer"]
offset_right = 800.0
offset_bottom = 600.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("1_tuygx")
[node name="Label" type="Label" parent="."]
layout_mode = 2
text = "Pong
"
label_settings = SubResource("LabelSettings_vv6u3")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Button" type="Button" parent="."]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "Play
"
[connection signal="pressed" from="Button" to="." method="OnButtonPressed"]