Pong/Scenes/Score.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

30 lines
772 B
Text

[gd_scene load_steps=3 format=3 uid="uid://co2rv0nci8sbm"]
[ext_resource type="Script" path="res://Scripts/Managers/ScoreManager.gd" id="1_bdtqr"]
[sub_resource type="LabelSettings" id="LabelSettings_piogj"]
font_size = 64
[node name="Score" type="HFlowContainer"]
z_index = 1
offset_left = -378.0
offset_top = -272.0
offset_right = 378.0
offset_bottom = 268.0
script = ExtResource("1_bdtqr")
[node name="Player1" type="Label" parent="."]
layout_mode = 2
size_flags_horizontal = 3
text = "0
"
label_settings = SubResource("LabelSettings_piogj")
vertical_alignment = 1
[node name="Player2" type="Label" parent="."]
layout_mode = 2
size_flags_horizontal = 3
text = "0"
label_settings = SubResource("LabelSettings_piogj")
horizontal_alignment = 2
vertical_alignment = 1