|
| 1 | +[gd_scene load_steps=3 format=3 uid="uid://bis7afjjuwypq"] |
| 2 | + |
| 3 | +[ext_resource type="Script" path="res://pong_game/hud.gd" id="1_yyb01"] |
| 4 | +[ext_resource type="Texture2D" uid="uid://dijemw7iilr2m" path="res://pong_game/line.png" id="2_jon51"] |
| 5 | + |
| 6 | +[node name="HUD" type="CanvasLayer" groups=["hud"]] |
| 7 | +script = ExtResource("1_yyb01") |
| 8 | + |
| 9 | +[node name="Control" type="Control" parent="."] |
| 10 | +layout_mode = 3 |
| 11 | +anchors_preset = 15 |
| 12 | +anchor_right = 1.0 |
| 13 | +anchor_bottom = 1.0 |
| 14 | +grow_horizontal = 2 |
| 15 | +grow_vertical = 2 |
| 16 | + |
| 17 | +[node name="HBoxContainer" type="HBoxContainer" parent="Control"] |
| 18 | +layout_mode = 1 |
| 19 | +anchors_preset = 15 |
| 20 | +anchor_right = 1.0 |
| 21 | +anchor_bottom = 1.0 |
| 22 | +grow_horizontal = 2 |
| 23 | +grow_vertical = 2 |
| 24 | + |
| 25 | +[node name="Lines" type="Sprite2D" parent="Control/HBoxContainer"] |
| 26 | +unique_name_in_owner = true |
| 27 | +texture_repeat = 2 |
| 28 | +position = Vector2(960, 536) |
| 29 | +texture = ExtResource("2_jon51") |
| 30 | +region_enabled = true |
| 31 | +region_rect = Rect2(0, 0, 20, 1100) |
| 32 | + |
| 33 | +[node name="PlayerLeftScore" type="Label" parent="Control"] |
| 34 | +unique_name_in_owner = true |
| 35 | +layout_mode = 2 |
| 36 | +offset_left = 240.0 |
| 37 | +offset_right = 717.0 |
| 38 | +offset_bottom = 1080.0 |
| 39 | +pivot_offset = Vector2(240, 176) |
| 40 | +size_flags_horizontal = 3 |
| 41 | +size_flags_vertical = 1 |
| 42 | +theme_override_font_sizes/font_size = 200 |
| 43 | +text = "0" |
| 44 | +horizontal_alignment = 1 |
| 45 | + |
| 46 | +[node name="PlayerRightScore" type="Label" parent="Control"] |
| 47 | +unique_name_in_owner = true |
| 48 | +layout_mode = 2 |
| 49 | +offset_left = 1200.0 |
| 50 | +offset_right = 1677.0 |
| 51 | +offset_bottom = 1080.0 |
| 52 | +pivot_offset = Vector2(240, 176) |
| 53 | +size_flags_horizontal = 3 |
| 54 | +size_flags_vertical = 1 |
| 55 | +theme_override_font_sizes/font_size = 200 |
| 56 | +text = "0" |
| 57 | +horizontal_alignment = 1 |
0 commit comments