feat: Add a loading screen, a lobby scene, and a new main game script, along with a custom font.
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dtjppx0u68jw5"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/loading_screen.gd" id="1_u2jrd"]
|
||||
[ext_resource type="Texture2D" uid="uid://beimain5tk480" path="res://assets/graphics/loading_screen/bg_loading.png" id="2_gardl"]
|
||||
[ext_resource type="Shader" uid="uid://df6pi8e32lmco" path="res://assets/graphics/loading_screen/loading_screen.gdshader" id="3_vqw5v"]
|
||||
[ext_resource type="Texture2D" uid="uid://boenrxbgftva1" path="res://assets/graphics/loading_screen/pattern.png" id="4_u2jrd"]
|
||||
[ext_resource type="FontFile" path="res://assets/fonts/TektonDash2.ttf" id="5_ho08k"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_pc0ba"]
|
||||
shader = ExtResource("3_vqw5v")
|
||||
|
||||
[sub_resource type="FontVariation" id="FontVariation_8cml4"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a8kcw"]
|
||||
bg_color = Color(0.529067, 0.529067, 0.529067, 1)
|
||||
border_width_left = 5
|
||||
border_width_top = 5
|
||||
border_width_right = 5
|
||||
border_width_bottom = 5
|
||||
border_color = Color(0, 0, 0, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8cml4"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
border_width_left = 5
|
||||
border_width_top = 5
|
||||
border_width_right = 5
|
||||
border_width_bottom = 5
|
||||
border_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="loading_screen" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_u2jrd")
|
||||
|
||||
[node name="Bg" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("2_gardl")
|
||||
|
||||
[node name="BgSeamless" type="TextureRect" parent="."]
|
||||
self_modulate = Color(1, 1, 1, 0.3529412)
|
||||
texture_repeat = 2
|
||||
material = SubResource("ShaderMaterial_pc0ba")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -421.0
|
||||
offset_bottom = 421.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = ExtResource("4_u2jrd")
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="scene_name" type="VBoxContainer" parent="Control"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -100.0
|
||||
offset_top = -100.0
|
||||
offset_right = 100.0
|
||||
offset_bottom = -20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="label" type="Label" parent="Control/scene_name"]
|
||||
layout_mode = 2
|
||||
text = "Loading..."
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="name_of_load_scene" type="Label" parent="Control/scene_name"]
|
||||
layout_mode = 2
|
||||
text = "Map"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="tips" type="VBoxContainer" parent="Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -200.0
|
||||
offset_top = -150.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = -100.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
alignment = 1
|
||||
|
||||
[node name="label" type="Label" parent="Control/tips"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 10
|
||||
theme_override_fonts/font = ExtResource("5_ho08k")
|
||||
theme_override_font_sizes/font_size = 24
|
||||
text = "Tips"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="tip_value" type="Label" parent="Control/tips"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 10
|
||||
theme_override_fonts/font = ExtResource("5_ho08k")
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "Tip Value"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="progress_bar" type="ProgressBar" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 50.0
|
||||
offset_top = -50.0
|
||||
offset_right = -50.0
|
||||
offset_bottom = -20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_fonts/font = SubResource("FontVariation_8cml4")
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_a8kcw")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_8cml4")
|
||||
Reference in New Issue
Block a user