2024-01-27 15:58:16 +01:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://rd48gl8k5x34"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Game.gd" id="1_7jqda"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b1nm5h3yccr16" path="res://scenes/World.tscn" id="2_voimb"]
|
2024-01-27 15:58:16 +01:00
|
|
|
[ext_resource type="FontFile" uid="uid://bf6q51e8x2s1h" path="res://assets/fonts/Bangers-Regular/Bangers-Regular.ttf" id="3_52dp0"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/GameUI.gd" id="4_2tdl1"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
|
|
|
[sub_resource type="World3D" id="World3D_5g233"]
|
|
|
|
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_2lmj8"]
|
|
|
|
viewport_path = NodePath("Viewport")
|
|
|
|
|
2024-01-27 15:58:16 +01:00
|
|
|
[sub_resource type="Theme" id="Theme_qtmht"]
|
|
|
|
default_font = ExtResource("3_52dp0")
|
|
|
|
default_font_size = 30
|
|
|
|
|
2024-01-26 21:07:19 +01:00
|
|
|
[node name="Game" type="Node"]
|
|
|
|
script = ExtResource("1_7jqda")
|
|
|
|
|
|
|
|
[node name="Viewport" type="SubViewport" parent="."]
|
|
|
|
own_world_3d = true
|
|
|
|
world_3d = SubResource("World3D_5g233")
|
|
|
|
|
|
|
|
[node name="World" parent="Viewport" instance=ExtResource("2_voimb")]
|
|
|
|
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
size_flags_vertical = 6
|
|
|
|
|
|
|
|
[node name="WorldView" type="TextureRect" parent="Panel"]
|
|
|
|
texture_filter = 1
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 4
|
|
|
|
texture = SubResource("ViewportTexture_2lmj8")
|
|
|
|
stretch_mode = 6
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 15:58:16 +01:00
|
|
|
[node name="TopBar" type="Panel" parent="."]
|
2024-01-27 02:07:15 +01:00
|
|
|
visible = false
|
2024-01-27 15:58:16 +01:00
|
|
|
custom_minimum_size = Vector2(0, 100)
|
|
|
|
anchors_preset = 10
|
|
|
|
anchor_right = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 4
|
|
|
|
|
|
|
|
[node name="Panel2" type="Panel" parent="."]
|
|
|
|
custom_minimum_size = Vector2(0, 80)
|
|
|
|
anchors_preset = 10
|
|
|
|
anchor_right = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
|
|
|
[node name="GameUI" type="Control" parent="."]
|
|
|
|
layout_mode = 3
|
2024-01-27 02:07:15 +01:00
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-01-27 15:58:16 +01:00
|
|
|
theme = SubResource("Theme_qtmht")
|
|
|
|
script = ExtResource("4_2tdl1")
|
|
|
|
world_path = NodePath("../Viewport/World")
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 15:58:16 +01:00
|
|
|
[node name="Player1Widgets" type="VBoxContainer" parent="GameUI"]
|
|
|
|
layout_mode = 1
|
|
|
|
offset_right = 49.0
|
|
|
|
offset_bottom = 77.0
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="NameLabel" type="Label" parent="GameUI/Player1Widgets"]
|
2024-01-27 02:07:15 +01:00
|
|
|
layout_mode = 2
|
2024-01-27 15:58:16 +01:00
|
|
|
text = "Red"
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 15:58:16 +01:00
|
|
|
[node name="ScoreLabel" type="Label" parent="GameUI/Player1Widgets"]
|
2024-01-27 02:07:15 +01:00
|
|
|
layout_mode = 2
|
2024-01-27 15:58:16 +01:00
|
|
|
text = "0
|
|
|
|
"
|
|
|
|
|
|
|
|
[node name="Player2Widgets" type="VBoxContainer" parent="GameUI"]
|
|
|
|
layout_direction = 3
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 7.0
|
|
|
|
offset_right = 56.0
|
|
|
|
offset_bottom = 77.0
|
|
|
|
size_flags_horizontal = 8
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="NameLabel" type="Label" parent="GameUI/Player2Widgets"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Blue"
|
|
|
|
|
|
|
|
[node name="ScoreLabel" type="Label" parent="GameUI/Player2Widgets"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "0
|
|
|
|
"
|