main menu, bootsplash tweaks

This commit is contained in:
2024-03-23 14:51:21 +01:00
parent 5f87e4f54f
commit daf88c489c
5 changed files with 1429 additions and 4 deletions
+1373 -1
View File
File diff suppressed because one or more lines are too long
+37
View File
@@ -0,0 +1,37 @@
[gd_scene load_steps=2 format=3 uid="uid://2kmyygabgfyo"]
[sub_resource type="LabelSettings" id="LabelSettings_u7eb1"]
font_size = 40
[node name="Main" type="Node2D"]
[node name="Control" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_right = 1200.0
offset_bottom = 600.0
[node name="SubViewportContainer" type="SubViewportContainer" parent="Control"]
layout_mode = 2
offset_top = 88.0
offset_right = 1200.0
offset_bottom = 600.0
[node name="SubViewport" type="SubViewport" parent="Control/SubViewportContainer"]
handle_input_locally = false
render_target_update_mode = 4
[node name="Panel" type="Panel" parent="Control"]
layout_mode = 0
offset_right = 1200.0
offset_bottom = 100.0
[node name="Label" type="Label" parent="Control/Panel"]
layout_mode = 0
offset_right = 1200.0
offset_bottom = 100.0
text = "Pong"
label_settings = SubResource("LabelSettings_u7eb1")
horizontal_alignment = 1
vertical_alignment = 1
justification_flags = 162
+6 -1
View File
@@ -2,7 +2,12 @@ extends Node2D
func _ready():
await get_tree().create_timer(1.0).timeout # Replace with function body.
var base_font_size = 20
for i in range(100):
await get_tree().create_timer(0.02).timeout
var label = get_node("TeletypeGames")
label.get_label_settings().font_size = base_font_size + i
await get_tree().create_timer(1.5).timeout
get_tree().change_scene_to_file("res://scenes/main_menu/MainMenu.tscn")
+7 -1
View File
@@ -11,11 +11,17 @@ default_font_size = 120
[sub_resource type="LabelSettings" id="LabelSettings_s823y"]
font_size = 120
shadow_size = 10
shadow_color = Color(0, 0, 0.439216, 0)
shadow_color = Color(1, 0, 0, 1)
shadow_offset = Vector2(2, 2)
[node name="BootSplash" type="Node2D"]
script = ExtResource("1_qt4f0")
[node name="Background" type="ColorRect" parent="."]
offset_right = 1200.0
offset_bottom = 600.0
color = Color(0.0117647, 0.121569, 0.129412, 1)
[node name="TeletypeGames" type="Label" parent="."]
anchors_preset = 8
anchor_left = 0.5
+5
View File
@@ -18,6 +18,11 @@ events = [SubResource("InputEventKey_p7j63")]
[node name="MainMenu" type="Node2D"]
[node name="Background" type="ColorRect" parent="."]
offset_right = 1200.0
offset_bottom = 600.0
color = Color(0.0117647, 0.121569, 0.129412, 1)
[node name="NewGameContainer" type="PanelContainer" parent="."]
offset_right = 1200.0
offset_bottom = 300.0