aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/Game')
-rw-r--r--game/src/Game/LoadingScreen.gd2
-rw-r--r--game/src/Game/LoadingScreen.tscn83
2 files changed, 83 insertions, 2 deletions
diff --git a/game/src/Game/LoadingScreen.gd b/game/src/Game/LoadingScreen.gd
index d953d20..ae04c85 100644
--- a/game/src/Game/LoadingScreen.gd
+++ b/game/src/Game/LoadingScreen.gd
@@ -5,6 +5,7 @@ extends Control
@export_subgroup("Nodes")
@export var progress_bar: ProgressBar
@export var quote_label: Label
+@export var animation_player: AnimationPlayer
var thread: Thread
var quotes: PackedStringArray = []
@@ -42,6 +43,7 @@ func _ready():
quotes = quotes_file.split("\n",false)
if quotes.is_empty():
quotes = [""]
+ animation_player.play("loadingscreen_gear")
func _exit_tree():
if thread != null and thread.is_started():
diff --git a/game/src/Game/LoadingScreen.tscn b/game/src/Game/LoadingScreen.tscn
index d6068c8..5ae1cb9 100644
--- a/game/src/Game/LoadingScreen.tscn
+++ b/game/src/Game/LoadingScreen.tscn
@@ -1,7 +1,9 @@
-[gd_scene load_steps=6 format=3 uid="uid://3kktdpfnc0sn"]
+[gd_scene load_steps=11 format=3 uid="uid://3kktdpfnc0sn"]
[ext_resource type="Script" path="res://src/Game/LoadingScreen.gd" id="1_b0p3w"]
[ext_resource type="Texture2D" uid="uid://doji17mxxmikl" path="res://theme/assets/loading_screen.png" id="2_ny153"]
+[ext_resource type="Texture2D" uid="uid://hlouxrjm7pqy" path="res://splash_assets/ovgear.png" id="3_avohi"]
+[ext_resource type="Texture2D" uid="uid://oirhxlyiogv8" path="res://splash_assets/globe.png" id="4_eyeeb"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_3fggo"]
texture = ExtResource("2_ny153")
@@ -20,7 +22,43 @@ corner_radius_top_right = 16
corner_radius_bottom_right = 16
corner_radius_bottom_left = 16
-[node name="LoadingScreen" type="Control" node_paths=PackedStringArray("progress_bar", "quote_label")]
+[sub_resource type="Animation" id="Animation_wsrst"]
+length = 0.001
+tracks/0/type = "bezier"
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/path = NodePath("Gear:rotation")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/keys = {
+"handle_modes": PackedInt32Array(0),
+"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
+"times": PackedFloat32Array(0)
+}
+
+[sub_resource type="Animation" id="Animation_3ktkq"]
+resource_name = "loadingscreen_gear"
+length = 5.0
+loop_mode = 1
+tracks/0/type = "bezier"
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/path = NodePath("Gear:rotation")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/keys = {
+"handle_modes": PackedInt32Array(0, 0),
+"points": PackedFloat32Array(0, 0, 0, 0, 0, 6.28319, 0, 0, 0, 0),
+"times": PackedFloat32Array(0, 5)
+}
+
+[sub_resource type="AnimationLibrary" id="AnimationLibrary_wo8l0"]
+_data = {
+"RESET": SubResource("Animation_wsrst"),
+"loadingscreen_gear": SubResource("Animation_3ktkq")
+}
+
+[node name="LoadingScreen" type="Control" node_paths=PackedStringArray("progress_bar", "quote_label", "animation_player")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -30,6 +68,7 @@ grow_vertical = 2
script = ExtResource("1_b0p3w")
progress_bar = NodePath("PanelContainer/MarginContainer/ProgressBar")
quote_label = NodePath("PanelContainer/MarginContainer/PanelContainer/QuoteLabel")
+animation_player = NodePath("AnimationPlayer")
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 1
@@ -68,3 +107,43 @@ horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 3
text_overrun_behavior = 3
+
+[node name="Gear" type="TextureRect" 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 = -128.0
+offset_top = -128.0
+offset_right = 128.0
+offset_bottom = 128.0
+grow_horizontal = 2
+grow_vertical = 2
+pivot_offset = Vector2(128, 128)
+size_flags_horizontal = 4
+size_flags_vertical = 4
+texture = ExtResource("3_avohi")
+expand_mode = 1
+
+[node name="Globe" type="TextureRect" 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 = -88.0
+offset_top = -87.0
+offset_right = 86.0
+offset_bottom = 86.0
+grow_horizontal = 2
+grow_vertical = 2
+texture = ExtResource("4_eyeeb")
+expand_mode = 1
+
+[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
+libraries = {
+"": SubResource("AnimationLibrary_wo8l0")
+}