From: Eduardo Date: Sat, 23 Sep 2023 22:56:05 +0000 (+0200) Subject: splash with bunny loading centered X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=8546ec9ce8f5a9ff238142ee34ed57eaee003ea2;p=The%20Cutests%20To-Do%20List.git splash with bunny loading centered the back pain logo is in the bottom and the bunny runing in circles (loading) is centered in the screen --- diff --git a/scenes/splash_screen/SplashScreen.tscn b/scenes/splash_screen/SplashScreen.tscn index 909ed83..cd33cfd 100644 --- a/scenes/splash_screen/SplashScreen.tscn +++ b/scenes/splash_screen/SplashScreen.tscn @@ -1,7 +1,135 @@ -[gd_scene load_steps=6 format=3 uid="uid://cav5l7bolim8v"] +[gd_scene load_steps=25 format=3 uid="uid://cav5l7bolim8v"] [ext_resource type="Script" path="res://scenes/splash_screen/SplashScreen.gd" id="1_a68pd"] [ext_resource type="Texture2D" uid="uid://cp80sedeiyu2c" path="res://themes/default/logo_backpain.png" id="2_m1jpr"] +[ext_resource type="Texture2D" uid="uid://br55agyqqfkg7" path="res://themes/default/resources/bunny_loading_spritesheet.png" id="3_w60kd"] + +[sub_resource type="AtlasTexture" id="AtlasTexture_pk1gk"] +atlas = ExtResource("3_w60kd") +region = Rect2(0, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hqkjm"] +atlas = ExtResource("3_w60kd") +region = Rect2(277, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0nhkx"] +atlas = ExtResource("3_w60kd") +region = Rect2(554, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_hs3dr"] +atlas = ExtResource("3_w60kd") +region = Rect2(831, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pm4ta"] +atlas = ExtResource("3_w60kd") +region = Rect2(1108, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_pv8uk"] +atlas = ExtResource("3_w60kd") +region = Rect2(1385, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4r5m5"] +atlas = ExtResource("3_w60kd") +region = Rect2(1662, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_jaqog"] +atlas = ExtResource("3_w60kd") +region = Rect2(1939, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_x67gc"] +atlas = ExtResource("3_w60kd") +region = Rect2(2216, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_n2ypl"] +atlas = ExtResource("3_w60kd") +region = Rect2(2493, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_0qnw5"] +atlas = ExtResource("3_w60kd") +region = Rect2(2770, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_4nkb6"] +atlas = ExtResource("3_w60kd") +region = Rect2(3047, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_25kc0"] +atlas = ExtResource("3_w60kd") +region = Rect2(3324, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_md53l"] +atlas = ExtResource("3_w60kd") +region = Rect2(3601, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_20mcp"] +atlas = ExtResource("3_w60kd") +region = Rect2(3878, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_khi20"] +atlas = ExtResource("3_w60kd") +region = Rect2(4155, 0, 277, 140) + +[sub_resource type="AtlasTexture" id="AtlasTexture_5ixfp"] +atlas = ExtResource("3_w60kd") +region = Rect2(4432, 0, 277, 140) + +[sub_resource type="SpriteFrames" id="SpriteFrames_1vrcc"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("AtlasTexture_pk1gk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_hqkjm") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0nhkx") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_hs3dr") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pm4ta") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_pv8uk") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4r5m5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_jaqog") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_x67gc") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_n2ypl") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_0qnw5") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_4nkb6") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_25kc0") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_md53l") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_20mcp") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_khi20") +}, { +"duration": 1.0, +"texture": SubResource("AtlasTexture_5ixfp") +}], +"loop": true, +"name": &"bunny_loading", +"speed": 10.0 +}] [sub_resource type="Animation" id="Animation_jr0un"] length = 0.001 @@ -42,6 +170,7 @@ _data = { [node name="SplashScreen" type="Node"] script = ExtResource("1_a68pd") +metadata/_edit_vertical_guides_ = [64.0, 1016.0] [node name="Background" type="ColorRect" parent="."] anchors_preset = 15 @@ -50,9 +179,10 @@ anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 -color = Color(0.996078, 0.886275, 0.792157, 1) +color = Color(1, 0.776471, 0.729412, 1) [node name="Copyright" type="Label" parent="."] +visible = false anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 @@ -67,6 +197,7 @@ theme_override_font_sizes/font_size = 32 text = "© 2023 Back Pain Games" [node name="Website" type="Label" parent="."] +visible = false anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 @@ -94,21 +225,40 @@ text = "0% horizontal_alignment = 2 [node name="Logo" type="TextureRect" parent="."] -anchors_preset = 8 +anchors_preset = 7 anchor_left = 0.5 -anchor_top = 0.5 +anchor_top = 1.0 anchor_right = 0.5 -anchor_bottom = 0.5 -scale = Vector2(0.5, 0.5) +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 0 +scale = Vector2(0.25, 0.25) +pivot_offset = Vector2(0, -200) texture = ExtResource("2_m1jpr") expand_mode = 5 stretch_mode = 3 [node name="SplashTime" type="Timer" parent="."] -wait_time = 0.2 +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 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_vertical = 4 + +[node name="BunnyLoadingAnimatedSprite" type="AnimatedSprite2D" parent="BunnyLoadingContainer"] +scale = Vector2(2, 2) +sprite_frames = SubResource("SpriteFrames_1vrcc") +animation = &"bunny_loading" +autoplay = "bunny_loading" + [node name="FadeCurtain" type="ColorRect" parent="."] anchors_preset = 15 anchor_right = 1.0