PressAnyKeyScreen → SplashScreen
This commit is contained in:
135
scenes/main/SplashScreen.tscn
Normal file
135
scenes/main/SplashScreen.tscn
Normal file
@@ -0,0 +1,135 @@
|
||||
[gd_scene load_steps=16 format=3 uid="uid://gbe1jarrwqsi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cq7or0bcm2xfj" path="res://scenes/main/SplashScreen.gd" id="1_0a4p2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcr4bokw87m5n" path="res://assets/sprites/characters/skeleton/Skeleton Idle.png" id="2_rjjcb"]
|
||||
[ext_resource type="PackedScene" uid="uid://df2b4wn8j6cxl" path="res://scenes/ui/DebugToggle.tscn" id="3_debug"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_l6pue"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(0, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3h5mc"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(24, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gqpp5"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(48, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ff5uo"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(72, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_e7oxa"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(96, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_urgkb"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(120, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xfg50"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(144, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_sy0v8"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(168, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kfv8w"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(192, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lvvje"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(216, 0, 24, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vvh7w"]
|
||||
atlas = ExtResource("2_rjjcb")
|
||||
region = Rect2(240, 0, 24, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_wtrhp"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_l6pue")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3h5mc")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gqpp5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ff5uo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_e7oxa")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_urgkb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xfg50")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_sy0v8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kfv8w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lvvje")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vvh7w")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="SplashScreen" type="Control" groups=["localizable"]]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_0a4p2")
|
||||
|
||||
[node name="SplashContainer" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -80.5
|
||||
offset_top = -25.0
|
||||
offset_right = 80.5
|
||||
offset_bottom = 25.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="SpriteContainer" type="Control" parent="SplashContainer"]
|
||||
custom_minimum_size = Vector2(30, 32)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="SplashContainer/SpriteContainer"]
|
||||
sprite_frames = SubResource("SpriteFrames_wtrhp")
|
||||
autoplay = "default"
|
||||
|
||||
[node name="TitleLabel" type="Label" parent="SplashContainer"]
|
||||
layout_mode = 2
|
||||
text = "Skelly"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ContinueLabel" type="Label" parent="SplashContainer"]
|
||||
layout_mode = 2
|
||||
text = "`press_ok_continue`"
|
||||
|
||||
[node name="DebugToggle" parent="." instance=ExtResource("3_debug")]
|
||||
layout_mode = 1
|
||||
Reference in New Issue
Block a user