2024-01-28 15:26:49 +01:00
|
|
|
[gd_scene load_steps=12 format=3 uid="uid://rd48gl8k5x34"]
|
2024-01-26 21:07:19 +01:00
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[ext_resource type="Theme" uid="uid://bb8mjy6l7umui" path="res://themes/GameUI.tres" id="2_eun58"]
|
2024-01-26 21:07:19 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://b1nm5h3yccr16" path="res://scenes/World.tscn" id="2_voimb"]
|
2024-01-28 14:35:49 +01:00
|
|
|
[ext_resource type="ButtonGroup" uid="uid://ctqarf04xdj1" path="res://ui/LevelSelectButtonGroup.tres" id="4_0dlh8"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b5ah0ej10awd5" path="res://levels/Platforms.png" id="4_0en0p"]
|
2024-01-27 15:58:16 +01:00
|
|
|
[ext_resource type="Script" path="res://scenes/GameUI.gd" id="4_2tdl1"]
|
2024-01-28 14:35:49 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://dam8r48qo0qqh" path="res://levels/BasicLevel.png" id="4_l63m5"]
|
2024-01-28 15:26:49 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://b3bftdoqgqopj" path="res://levels/LotsaHoles.png" id="7_8su71"]
|
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-28 12:58:17 +01:00
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y5ieh"]
|
|
|
|
bg_color = Color(1, 0, 0, 1)
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_obhii"]
|
|
|
|
bg_color = Color(0, 0, 1, 1)
|
|
|
|
|
2024-01-26 21:07:19 +01:00
|
|
|
[node name="Game" type="Node"]
|
|
|
|
|
|
|
|
[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="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 23:12:04 +01:00
|
|
|
theme = ExtResource("2_eun58")
|
2024-01-27 15:58:16 +01:00
|
|
|
script = ExtResource("4_2tdl1")
|
|
|
|
world_path = NodePath("../Viewport/World")
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="GameStartupWidgets" type="Panel" parent="GameUI"]
|
2024-01-28 01:14:56 +01:00
|
|
|
visible = false
|
2024-01-27 23:12:04 +01:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
theme = ExtResource("2_eun58")
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameStartupWidgets"]
|
|
|
|
layout_mode = 1
|
2024-01-28 00:17:29 +01:00
|
|
|
anchors_preset = 7
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_left = -149.0
|
|
|
|
offset_top = -128.0
|
|
|
|
offset_right = 149.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 0
|
|
|
|
theme_override_font_sizes/font_size = 120
|
|
|
|
text = "Ready?"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Logo" type="Control" parent="GameUI/GameStartupWidgets"]
|
|
|
|
layout_mode = 1
|
2024-01-27 23:12:04 +01:00
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2024-01-28 00:17:29 +01:00
|
|
|
offset_left = -20.0
|
|
|
|
offset_top = -20.0
|
|
|
|
offset_right = 20.0
|
|
|
|
offset_bottom = 20.0
|
2024-01-27 23:12:04 +01:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-01-28 00:17:29 +01:00
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="GameUI/GameStartupWidgets/Logo"]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = -356.0
|
|
|
|
offset_top = -160.871
|
|
|
|
offset_right = -34.0
|
|
|
|
offset_bottom = 10.1293
|
|
|
|
rotation = -0.277231
|
|
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
|
theme_override_constants/shadow_offset_x = 20
|
|
|
|
theme_override_constants/shadow_offset_y = 20
|
|
|
|
theme_override_constants/outline_size = 40
|
|
|
|
theme_override_font_sizes/font_size = 160
|
2024-01-28 01:14:56 +01:00
|
|
|
text = "DASH"
|
2024-01-28 00:17:29 +01:00
|
|
|
|
|
|
|
[node name="Label3" type="Label" parent="GameUI/GameStartupWidgets/Logo"]
|
2024-01-28 01:14:56 +01:00
|
|
|
layout_mode = 0
|
2024-01-28 00:17:29 +01:00
|
|
|
offset_left = -142.0
|
|
|
|
offset_top = -107.871
|
|
|
|
offset_right = 182.0
|
|
|
|
offset_bottom = 63.1293
|
|
|
|
rotation = -0.279149
|
|
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
|
theme_override_constants/shadow_offset_x = 20
|
|
|
|
theme_override_constants/shadow_offset_y = 20
|
|
|
|
theme_override_constants/outline_size = 40
|
|
|
|
theme_override_font_sizes/font_size = 160
|
|
|
|
text = "BOOM"
|
|
|
|
|
|
|
|
[node name="Label4" type="Label" parent="GameUI/GameStartupWidgets/Logo"]
|
2024-01-28 01:14:56 +01:00
|
|
|
layout_mode = 0
|
2024-01-28 00:17:29 +01:00
|
|
|
offset_left = -219.0
|
|
|
|
offset_top = 12.1293
|
|
|
|
offset_right = 120.0
|
|
|
|
offset_bottom = 183.129
|
|
|
|
rotation = -0.137962
|
|
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
|
theme_override_constants/shadow_offset_x = 20
|
|
|
|
theme_override_constants/shadow_offset_y = 20
|
|
|
|
theme_override_constants/outline_size = 40
|
|
|
|
theme_override_font_sizes/font_size = 160
|
|
|
|
text = "COLOR"
|
|
|
|
|
|
|
|
[node name="Label5" type="Label" parent="GameUI/GameStartupWidgets/Logo"]
|
2024-01-28 01:14:56 +01:00
|
|
|
layout_mode = 0
|
2024-01-28 00:17:29 +01:00
|
|
|
offset_left = -34.0
|
|
|
|
offset_top = 97.0
|
|
|
|
offset_right = 305.0
|
|
|
|
offset_bottom = 268.0
|
|
|
|
rotation = -0.155661
|
|
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
|
|
theme_override_constants/shadow_offset_x = 20
|
|
|
|
theme_override_constants/shadow_offset_y = 20
|
|
|
|
theme_override_constants/outline_size = 40
|
|
|
|
theme_override_font_sizes/font_size = 160
|
|
|
|
text = "CLASH"
|
2024-01-27 23:12:04 +01:00
|
|
|
|
|
|
|
[node name="GameFinishedWidgets" type="Panel" parent="GameUI"]
|
2024-01-28 13:19:08 +01:00
|
|
|
visible = false
|
2024-01-27 23:12:04 +01:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
theme = ExtResource("2_eun58")
|
|
|
|
|
2024-01-28 00:17:29 +01:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="GameUI/GameFinishedWidgets"]
|
2024-01-27 23:12:04 +01:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2024-01-28 00:17:29 +01:00
|
|
|
offset_left = -240.0
|
|
|
|
offset_top = -64.0
|
|
|
|
offset_right = 240.0
|
|
|
|
offset_bottom = 64.0
|
2024-01-27 23:12:04 +01:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-01-28 00:17:29 +01:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameFinishedWidgets/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
2024-01-27 23:12:04 +01:00
|
|
|
theme_override_font_sizes/font_size = 120
|
|
|
|
text = "Game Over!"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
2024-01-28 01:14:56 +01:00
|
|
|
[node name="WinnerLabel" type="Label" parent="GameUI/GameFinishedWidgets/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Player 1 wins"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
2024-01-28 00:17:29 +01:00
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="GameUI/GameFinishedWidgets/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="Player1Stats" type="VBoxContainer" parent="GameUI/GameFinishedWidgets/VBoxContainer/HBoxContainer"]
|
|
|
|
custom_minimum_size = Vector2(200, 0)
|
|
|
|
layout_direction = 2
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameFinishedWidgets/VBoxContainer/HBoxContainer/Player1Stats"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Player 1"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Points" type="Label" parent="GameUI/GameFinishedWidgets/VBoxContainer/HBoxContainer/Player1Stats"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "0"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Player2Stats" type="VBoxContainer" parent="GameUI/GameFinishedWidgets/VBoxContainer/HBoxContainer"]
|
|
|
|
custom_minimum_size = Vector2(200, 0)
|
|
|
|
layout_direction = 2
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameFinishedWidgets/VBoxContainer/HBoxContainer/Player2Stats"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Player 2"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Points" type="Label" parent="GameUI/GameFinishedWidgets/VBoxContainer/HBoxContainer/Player2Stats"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "0"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="GameRunningWidgets" type="Panel" parent="GameUI"]
|
2024-01-28 13:19:08 +01:00
|
|
|
visible = false
|
2024-01-27 23:12:04 +01:00
|
|
|
custom_minimum_size = Vector2(0, 80)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 10
|
|
|
|
anchor_right = 1.0
|
|
|
|
offset_bottom = 80.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
|
|
|
[node name="Player1Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
|
2024-01-27 15:58:16 +01:00
|
|
|
layout_mode = 1
|
|
|
|
offset_right = 49.0
|
|
|
|
offset_bottom = 77.0
|
|
|
|
alignment = 1
|
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
|
2024-01-27 02:07:15 +01:00
|
|
|
layout_mode = 2
|
2024-01-28 12:58:17 +01:00
|
|
|
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
2024-01-27 15:58:16 +01:00
|
|
|
text = "Red"
|
2024-01-27 02:07:15 +01:00
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player1Widgets"]
|
2024-01-27 02:07:15 +01:00
|
|
|
layout_mode = 2
|
2024-01-28 12:58:17 +01:00
|
|
|
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
2024-01-27 15:58:16 +01:00
|
|
|
text = "0
|
|
|
|
"
|
|
|
|
|
2024-01-27 23:30:23 +01:00
|
|
|
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player1Widgets"]
|
|
|
|
custom_minimum_size = Vector2(400, 0)
|
|
|
|
layout_mode = 2
|
2024-01-28 12:58:17 +01:00
|
|
|
theme_override_styles/fill = SubResource("StyleBoxFlat_y5ieh")
|
2024-01-27 23:30:23 +01:00
|
|
|
value = 33.0
|
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="Player2Widgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
|
2024-01-27 15:58:16 +01:00
|
|
|
layout_direction = 3
|
2024-01-27 23:12:04 +01:00
|
|
|
layout_mode = 1
|
|
|
|
offset_right = 49.0
|
2024-01-27 15:58:16 +01:00
|
|
|
offset_bottom = 77.0
|
|
|
|
size_flags_horizontal = 8
|
|
|
|
alignment = 1
|
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="NameLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
|
2024-01-27 15:58:16 +01:00
|
|
|
layout_mode = 2
|
2024-01-28 12:58:17 +01:00
|
|
|
theme_override_colors/font_color = Color(0, 0, 1, 1)
|
2024-01-27 15:58:16 +01:00
|
|
|
text = "Blue"
|
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="ScoreLabel" type="Label" parent="GameUI/GameRunningWidgets/Player2Widgets"]
|
2024-01-27 15:58:16 +01:00
|
|
|
layout_mode = 2
|
2024-01-28 12:58:17 +01:00
|
|
|
theme_override_colors/font_color = Color(0, 0, 1, 1)
|
2024-01-27 15:58:16 +01:00
|
|
|
text = "0
|
|
|
|
"
|
2024-01-27 23:12:04 +01:00
|
|
|
|
2024-01-27 23:30:23 +01:00
|
|
|
[node name="EnergyProgressBar" type="ProgressBar" parent="GameUI/GameRunningWidgets/Player2Widgets"]
|
|
|
|
custom_minimum_size = Vector2(400, 0)
|
|
|
|
layout_mode = 2
|
2024-01-28 12:58:17 +01:00
|
|
|
theme_override_styles/fill = SubResource("StyleBoxFlat_obhii")
|
2024-01-27 23:30:23 +01:00
|
|
|
value = 75.0
|
|
|
|
|
2024-01-27 23:12:04 +01:00
|
|
|
[node name="TimeWidgets" type="VBoxContainer" parent="GameUI/GameRunningWidgets"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
offset_left = -48.0
|
|
|
|
offset_right = 48.0
|
|
|
|
offset_bottom = 70.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "Time Left"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="TimeLeftLabel" type="Label" parent="GameUI/GameRunningWidgets/TimeWidgets"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = "00:30:00"
|
|
|
|
horizontal_alignment = 1
|
2024-01-28 13:19:08 +01:00
|
|
|
|
2024-01-28 14:35:49 +01:00
|
|
|
[node name="GameLevelSelectWidgets" type="Panel" parent="GameUI"]
|
2024-01-28 13:19:08 +01:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-01-28 14:35:49 +01:00
|
|
|
|
|
|
|
[node name="LevelListContainer" type="HBoxContainer" parent="GameUI/GameLevelSelectWidgets"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 14
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
focus_next = NodePath("BasicLevelButton")
|
|
|
|
focus_mode = 2
|
|
|
|
theme_override_constants/separation = 32
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="BasicLevelButton" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
toggle_mode = true
|
|
|
|
button_group = ExtResource("4_0dlh8")
|
|
|
|
icon = ExtResource("4_l63m5")
|
|
|
|
|
|
|
|
[node name="PlatformLevelButton" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
toggle_mode = true
|
|
|
|
button_group = ExtResource("4_0dlh8")
|
|
|
|
icon = ExtResource("4_0en0p")
|
2024-01-28 15:26:49 +01:00
|
|
|
|
|
|
|
[node name="PlatformLevelButton2" type="Button" parent="GameUI/GameLevelSelectWidgets/LevelListContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
toggle_mode = true
|
|
|
|
button_group = ExtResource("4_0dlh8")
|
|
|
|
icon = ExtResource("7_8su71")
|