main menu, bootsplash tweaks
This commit is contained in:
@@ -2,9 +2,14 @@ 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")
|
||||
|
||||
|
||||
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user