splash with logo centered
authorEduardo <[email protected]>
Sat, 23 Sep 2023 23:06:14 +0000 (01:06 +0200)
committerEduardo <[email protected]>
Sat, 23 Sep 2023 23:06:14 +0000 (01:06 +0200)
the back pain logo is centered in the screen on top and the loading bunny animation is under it

scenes/splash_screen/SplashScreen.tscn

index cd33cfdbf614587ad463cd66709d5c4f08f3b5d1..6fb6d2975d4019153bf31ef03714c1f78013395f 100644 (file)
@@ -225,32 +225,32 @@ text = "0%
 horizontal_alignment = 2
 
 [node name="Logo" type="TextureRect" parent="."]
-anchors_preset = 7
+anchors_preset = 8
 anchor_left = 0.5
-anchor_top = 1.0
+anchor_top = 0.5
 anchor_right = 0.5
-anchor_bottom = 1.0
+anchor_bottom = 0.5
 grow_horizontal = 2
-grow_vertical = 0
-scale = Vector2(0.25, 0.25)
-pivot_offset = Vector2(0, -200)
+grow_vertical = 2
+scale = Vector2(0.5, 0.5)
+pivot_offset = Vector2(0, -500)
+size_flags_horizontal = 4
+size_flags_vertical = 4
 texture = ExtResource("2_m1jpr")
 expand_mode = 5
 stretch_mode = 3
 
-[node name="SplashTime" type="Timer" parent="."]
-wait_time = 3.0
-one_shot = true
-autostart = true
-
 [node name="BunnyLoadingContainer" type="CenterContainer" parent="."]
 anchors_preset = 8
 anchor_left = 0.5
 anchor_top = 0.5
 anchor_right = 0.5
 anchor_bottom = 0.5
+offset_top = 500.0
+offset_bottom = 500.0
 grow_horizontal = 2
 grow_vertical = 2
+pivot_offset = Vector2(0, 500)
 size_flags_vertical = 4
 
 [node name="BunnyLoadingAnimatedSprite" type="AnimatedSprite2D" parent="BunnyLoadingContainer"]
@@ -267,6 +267,11 @@ grow_horizontal = 2
 grow_vertical = 2
 color = Color(0, 0, 0, 0)
 
+[node name="SplashTime" type="Timer" parent="."]
+wait_time = 3.0
+one_shot = true
+autostart = true
+
 [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
 libraries = {
 "": SubResource("AnimationLibrary_6sio5")