Made Loading screen it's own component instead of being part of the player and made it part of the game

This commit is contained in:
Willow Behar
2024-06-02 15:27:47 -05:00
parent 452c500937
commit d13d76411c
4 changed files with 51 additions and 42 deletions

View File

@ -1,14 +1,12 @@
[gd_scene load_steps=7 format=3 uid="uid://bcjijcf8br8t4"]
[gd_scene load_steps=5 format=3 uid="uid://bcjijcf8br8t4"]
[ext_resource type="Script" path="res://Assets/scripts/player.gd" id="1_b2ij4"]
[ext_resource type="Script" path="res://Assets/scripts/Head.gd" id="2_is0vo"]
[ext_resource type="Script" path="res://Assets/scripts/vapelight.gd" id="2_ndvgb"]
[ext_resource type="Script" path="res://Assets/scripts/LoadingScreen.gd" id="4_1bb8i"]
[ext_resource type="Theme" uid="uid://dnoxpn5kedvxh" path="res://Assets/Resources/VCRFont.tres" id="4_7cvtk"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_lm3xc"]
[node name="Player" type="CharacterBody3D"]
[node name="Player" type="CharacterBody3D" groups=["Player"]]
script = ExtResource("1_b2ij4")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
@ -44,41 +42,7 @@ wait_time = 5.0
[node name="Severe Coughing Recovery" type="Timer" parent="."]
wait_time = 15.0
[node name="LoadingScreen" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("4_7cvtk")
script = ExtResource("4_1bb8i")
[node name="Blackout" type="ColorRect" parent="LoadingScreen"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
[node name="Label" type="Label" parent="LoadingScreen/Blackout"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 80
text = "Loading..."
horizontal_alignment = 1
vertical_alignment = 1
[node name="Timer" type="Timer" parent="LoadingScreen"]
[connection signal="timeout" from="Severe Coughing Timer" to="." method="_on_severe_coughing_timer_timeout"]
[connection signal="timeout" from="Coughing Timer" to="." method="_on_coughing_timer_timeout"]
[connection signal="timeout" from="Coughing Recovery" to="." method="_on_coughing_recovery_timeout"]
[connection signal="timeout" from="Severe Coughing Recovery" to="." method="_on_severe_coughing_recovery_timeout"]
[connection signal="timeout" from="LoadingScreen/Timer" to="LoadingScreen" method="_on_timer_timeout"]