Update enemy animations, make Loading screen a scene

This commit is contained in:
2025-09-26 00:17:38 -07:00
parent 5403aa42f9
commit 928112188b
24 changed files with 1323 additions and 1143 deletions

View File

@@ -24,7 +24,7 @@ public partial class App : Node, IApp
[Node] private MainMenu MainMenu { get; set; } = default!;
[Node] private Control Loading { get; set; } = default!;
[Node] private Control LoadingScreen { get; set; } = default!;
public IInstantiator Instantiator { get; set; } = default!;
@@ -68,7 +68,7 @@ public partial class App : Node, IApp
private void OnGameLoaded(string sceneName)
{
Loading.Hide();
LoadingScreen.Hide();
var scene = (PackedScene)ResourceLoader.LoadThreadedGet(sceneName);
var node = scene.Instantiate();
AddChild(node);

View File

@@ -1,48 +1,15 @@
[gd_scene load_steps=5 format=3 uid="uid://cagfc5ridmteu"]
[gd_scene load_steps=4 format=3 uid="uid://cagfc5ridmteu"]
[ext_resource type="Script" uid="uid://d1f8blk5ucqvq" path="res://src/app/App.cs" id="1_rt73h"]
[ext_resource type="PackedScene" uid="uid://rfvnddfqufho" path="res://src/menu/MainMenu.tscn" id="2_1uiag"]
[ext_resource type="FontFile" uid="uid://cm8j5vcdop5x0" path="res://src/ui/fonts/Mrs-Eaves-OT-Roman_31443.ttf" id="2_3st5l"]
[sub_resource type="LabelSettings" id="LabelSettings_v0mgf"]
font = ExtResource("2_3st5l")
font_size = 100
font_color = Color(0.737255, 0.705882, 0.690196, 1)
[ext_resource type="PackedScene" uid="uid://cpjlj7kxdhv16" path="res://src/menu/LoadingScreen.tscn" id="3_3st5l"]
[node name="App" type="Node"]
process_mode = 3
script = ExtResource("1_rt73h")
[node name="Loading" type="Control" parent="."]
[node name="LoadingScreen" parent="." instance=ExtResource("3_3st5l")]
unique_name_in_owner = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ColorRect" type="ColorRect" parent="Loading"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.137255, 0.121569, 0.12549, 1)
[node name="CenterContainer" type="CenterContainer" parent="Loading"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="Loading/CenterContainer"]
layout_mode = 2
text = "Loading..."
label_settings = SubResource("LabelSettings_v0mgf")
[node name="MainMenu" parent="." instance=ExtResource("2_1uiag")]
unique_name_in_owner = true