Loading screen fixes, transition screen UI fixes
This commit is contained in:
@@ -169,6 +169,7 @@ public partial class App : Node, IApp
|
||||
.Handle((in AppLogic.Output.EnemyViewerOpened _) =>
|
||||
{
|
||||
LoadingScreen.Show();
|
||||
MainMenu.Hide();
|
||||
LoadEnemyViewer(ENEMY_VIEWER_PATH);
|
||||
})
|
||||
.Handle((in AppLogic.Output.EnemyViewerExited _) =>
|
||||
@@ -189,10 +190,7 @@ public partial class App : Node, IApp
|
||||
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if (_reportedProgress < 1)
|
||||
LoadingScreen.ProgressBar.Value = Mathf.RoundToInt(Mathf.Lerp(LoadingScreen.ProgressBar.Value, _reportedProgress * 100, (float)delta * 2));
|
||||
else
|
||||
LoadingScreen.ProgressBar.Value = Mathf.RoundToInt(Mathf.Lerp(LoadingScreen.ProgressBar.Value, 200, (float)delta * 5));
|
||||
}
|
||||
|
||||
public void OnStartGame() => AppLogic.Input(new AppLogic.Input.NewGame());
|
||||
@@ -205,17 +203,21 @@ public partial class App : Node, IApp
|
||||
{
|
||||
var scene = await LoadSceneInternal(sceneName);
|
||||
_game = scene as IGame;
|
||||
_game.GameLoaded += OnGameLoaded;
|
||||
_game.GameExitRequested += GameExitRequested;
|
||||
await ToSignal(GetTree().CreateTimer(0.8f), "timeout");
|
||||
CallDeferred(MethodName.AddChild, scene);
|
||||
}
|
||||
|
||||
private void OnGameLoaded() => LoadingScreen.Hide();
|
||||
|
||||
private async void LoadEnemyViewer(string sceneName)
|
||||
{
|
||||
var scene = await LoadSceneInternal(sceneName);
|
||||
_enemyViewer = scene as IDataViewer;
|
||||
await ToSignal(GetTree().CreateTimer(0.8f), "timeout");
|
||||
CallDeferred(MethodName.AddChild, scene);
|
||||
LoadingScreen.Hide();
|
||||
}
|
||||
|
||||
private async Task<Node> LoadSceneInternal(string sceneName)
|
||||
|
||||
@@ -14,10 +14,6 @@ script = ExtResource("1_rt73h")
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
|
||||
[node name="LoadingScreen" parent="." instance=ExtResource("3_3st5l")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
|
||||
[node name="OptionsMenu" parent="." instance=ExtResource("2_v0mgf")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
@@ -31,3 +27,9 @@ unique_name_in_owner = true
|
||||
visible = false
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="LoadingScreen" parent="." instance=ExtResource("3_3st5l")]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
top_level = true
|
||||
z_index = 999
|
||||
|
||||
@@ -133,6 +133,7 @@ public partial class BossTypeA : Enemy, IHaveEngagePlayerBehavior, IHaveFollowBe
|
||||
{
|
||||
SetPhysicsProcess(false);
|
||||
_enemyLogic.Input(new EnemyLogic.Input.Defeated());
|
||||
_collisionShape.SetDeferred(CollisionShape3D.PropertyName.Disabled, true);
|
||||
EnemyHitbox.SetDeferred(CollisionShape3D.PropertyName.Disabled, true);
|
||||
_player.ExperiencePointsComponent.Gain(ExpGiven);
|
||||
EnemyModelView.PlayDeathAnimation();
|
||||
|
||||
@@ -14,6 +14,8 @@ public partial class DemonWall : Enemy3D
|
||||
|
||||
[Node] private new DemonWallModelView EnemyModelView { get; set; } = default!;
|
||||
|
||||
[Node] private Label DemonWallHP { get; set; } = default!;
|
||||
|
||||
private Timer _attackTimer;
|
||||
|
||||
public void OnReady()
|
||||
@@ -23,6 +25,11 @@ public partial class DemonWall : Enemy3D
|
||||
AddChild(_attackTimer);
|
||||
}
|
||||
|
||||
public void OnPhysicsProcess(double delta)
|
||||
{
|
||||
DemonWallHP.Text = HealthComponent.CurrentHP.Value + "/" + HealthComponent.MaximumHP.Value;
|
||||
}
|
||||
|
||||
public override void Activate()
|
||||
{
|
||||
SetPhysicsProcess(true);
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
[ext_resource type="AudioStream" uid="uid://bn6ns3jxkw03b" path="res://src/audio/sfx/ENEMY_SPROING_death.ogg" id="6_f313b"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_5ht6q"]
|
||||
size = Vector3(28.3283, 10.355, 4.45671)
|
||||
size = Vector3(29.3551, 17.3836, 4.45671)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_5gof3"]
|
||||
size = Vector3(28.4577, 8.476, 8.04248)
|
||||
size = Vector3(28.4577, 15.2605, 8.04248)
|
||||
|
||||
[node name="Demon Wall" type="CharacterBody3D"]
|
||||
collision_layer = 2
|
||||
@@ -19,7 +19,7 @@ collision_mask = 2
|
||||
script = ExtResource("1_dqcrh")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.40558, 8.3319, 2.53654)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.249016, 4.81762, 2.53654)
|
||||
shape = SubResource("BoxShape3D_5ht6q")
|
||||
|
||||
[node name="Area3D6" type="Area3D" parent="."]
|
||||
@@ -28,12 +28,11 @@ collision_layer = 2048
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D6"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.7687, 8.25977, 4.30386)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -14.7687, 4.86754, 4.30386)
|
||||
shape = SubResource("BoxShape3D_5gof3")
|
||||
|
||||
[node name="EnemyModelView" parent="." instance=ExtResource("4_affkc")]
|
||||
unique_name_in_owner = true
|
||||
CanMove = null
|
||||
|
||||
[node name="HitSounds" type="Node3D" parent="."]
|
||||
|
||||
@@ -60,3 +59,25 @@ bus = &"SFX"
|
||||
[node name="AggroSFX" type="AudioStreamPlayer3D" parent="HitSounds"]
|
||||
unique_name_in_owner = true
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="VFlowContainer" type="VFlowContainer" parent="Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 51.0
|
||||
offset_top = 980.0
|
||||
offset_right = 659.0
|
||||
offset_bottom = 1085.0
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VFlowContainer"]
|
||||
layout_mode = 2
|
||||
text = "Demon Wall HP:"
|
||||
|
||||
[node name="DemonWallHP" type="Label" parent="Control/VFlowContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
layout_mode = 2
|
||||
|
||||
@@ -58,6 +58,8 @@ public partial class Game : Node3D, IGame
|
||||
public delegate void SaveFileLoadedEventHandler();
|
||||
|
||||
public event Action GameExitRequested;
|
||||
|
||||
public event Action GameLoaded;
|
||||
#endregion
|
||||
|
||||
public RescuedItemDatabase RescuedItems { get; set; } = default!;
|
||||
@@ -200,6 +202,7 @@ public partial class Game : Node3D, IGame
|
||||
_effectService = new EffectService(this, _player, _map);
|
||||
_player.Activate();
|
||||
await _map.LoadFloor();
|
||||
GameLoaded?.Invoke();
|
||||
}
|
||||
|
||||
public async Task Save() => await SaveFile.Save();
|
||||
|
||||
@@ -35,4 +35,6 @@ public interface IGame : IProvide<IGame>, IProvide<IGameRepo>, IProvide<IPlayer>
|
||||
public QuestData QuestData { get; }
|
||||
|
||||
public event Action GameExitRequested;
|
||||
|
||||
public event Action GameLoaded;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
using System.Collections.Immutable;
|
||||
using Zennysoft.Ma.Adapter;
|
||||
|
||||
namespace Zennysoft.Game.Ma;
|
||||
|
||||
@@ -10,6 +11,8 @@ public partial class BossRoomB : Node3D, IBossRoom, IDungeonFloor
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Dependency] public IGame Game => this.DependOn<IGame>();
|
||||
|
||||
[Node] public Marker3D PlayerSpawn { get; set; } = default!;
|
||||
|
||||
[Node] public DemonWall DemonWall { get; set; } = default!;
|
||||
@@ -18,9 +21,12 @@ public partial class BossRoomB : Node3D, IBossRoom, IDungeonFloor
|
||||
public ImmutableList<IDungeonRoom> Rooms { get; }
|
||||
public bool FloorIsLoaded { get; set; }
|
||||
|
||||
[Node] private Area3D _exit { get; set; } = default!;
|
||||
|
||||
public void OnReady()
|
||||
{
|
||||
ActivateTrap.BodyEntered += ActivateTrap_AreaEntered;
|
||||
_exit.AreaEntered += Exit_AreaEntered;
|
||||
}
|
||||
|
||||
private void ActivateTrap_AreaEntered(Node3D area) => StartBossFight();
|
||||
@@ -40,5 +46,14 @@ public partial class BossRoomB : Node3D, IBossRoom, IDungeonFloor
|
||||
|
||||
}
|
||||
|
||||
public void ExitReached()
|
||||
=> Game.FloorExitReached();
|
||||
|
||||
private void Exit_AreaEntered(Area3D area)
|
||||
{
|
||||
if (area.GetOwner() is IPlayer)
|
||||
ExitReached();
|
||||
}
|
||||
|
||||
public Transform3D GetPlayerSpawnPoint() => new Transform3D(PlayerSpawn.Basis, new Vector3(PlayerSpawn.Position.X, 0f, PlayerSpawn.Position.Z));
|
||||
}
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
[gd_scene load_steps=67 format=4 uid="uid://5ja3qxn8h7iw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://tqyybt313web" path="res://src/map/dungeon/code/BossRoomA.cs" id="1_0h3lb"]
|
||||
[ext_resource type="Texture2D" uid="uid://clc5f6yyc7sdw" path="res://src/map/assets/Jomon Bells/BELL ANIMATIONS_concrete_0003_color_1k.png" id="2_lqw6r"]
|
||||
[ext_resource type="PackedScene" uid="uid://j7xsk4fv6f4q" path="res://src/map/dungeon/models/Special Floors & Rooms/Boss Floor A/15_A1_BOSS FLOOR A_VER.2.glb" id="2_r3w6s"]
|
||||
[ext_resource type="PackedScene" uid="uid://btkyaimv28kjk" path="res://src/map/dungeon/special collision models/BOSS LEVEL 1 Collision.glb" id="3_gshnr"]
|
||||
[ext_resource type="Texture2D" uid="uid://dipyrtjclqae1" path="res://src/map/assets/Jomon Bells/BELL ANIMATIONS_COLUMN.jpg" id="3_ucaw1"]
|
||||
[ext_resource type="Texture2D" uid="uid://d1xdvf8awh4bi" path="res://src/map/assets/Jomon Bells/BELL ANIMATIONS_CHAIN_TEX.png" id="4_i4jo4"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3e37dca0j8r4" path="res://src/map/dungeon/models/Special Floors & Rooms/Boss Floor A/15_A1_BOSS FLOOR A_VER_CEILING_1.jpg" id="11_1hwdv"]
|
||||
[ext_resource type="PackedScene" uid="uid://2wibfnu2jvlv" path="res://src/enemy/enemy_types/14. horse_head/HorseFace.tscn" id="14_jb41f"]
|
||||
[ext_resource type="PackedScene" uid="uid://8yaqqojv4nuv" path="res://src/enemy/enemy_types/14. horse_head/HorseHeadStatue.tscn" id="15_1ijgn"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvv5giqyrhtl1" path="res://src/enemy/enemy_types/15. ox_face/OxFaceStatue.tscn" id="26_futcf"]
|
||||
[ext_resource type="PackedScene" uid="uid://6dnsw37d1uw4" path="res://src/enemy/enemy_types/15. ox_face/OxFace.tscn" id="27_g6y6v"]
|
||||
[ext_resource type="Shader" uid="uid://dr68ani6ouefm" path="res://src/map/map shaders/B1 Cloud Roll.gdshader" id="30_lmjp4"]
|
||||
[ext_resource type="Texture2D" uid="uid://nljdi5gnv0wr" path="res://src/map/dungeon/models/Special Floors & Rooms/Boss Floor A/15_A1_BOSS FLOOR A_VER_HAND_CYCLE_MOTIF.png" id="31_2uojg"]
|
||||
[ext_resource type="PackedScene" uid="uid://bfvy34lj7lns" path="res://src/map/assets/Sarcophagus/sarco altar.glb" id="58_lqw6r"]
|
||||
[ext_resource type="PackedScene" uid="uid://d2rje5p3a0xdg" path="res://src/map/assets/Sarcophagus/sarco.glb" id="59_ucaw1"]
|
||||
[ext_resource type="Script" uid="uid://tqyybt313web" path="res://src/map/dungeon/code/BossRoomA.cs" id="1_tkvnw"]
|
||||
[ext_resource type="PackedScene" uid="uid://j7xsk4fv6f4q" path="res://src/map/dungeon/models/Special Floors & Rooms/Boss Floor A/15_A1_BOSS FLOOR A_VER.2.glb" id="2_giq3n"]
|
||||
[ext_resource type="PackedScene" uid="uid://bfvy34lj7lns" path="res://src/map/assets/Sarcophagus/sarco altar.glb" id="3_3aamq"]
|
||||
[ext_resource type="PackedScene" uid="uid://d2rje5p3a0xdg" path="res://src/map/assets/Sarcophagus/sarco.glb" id="4_cs1wi"]
|
||||
[ext_resource type="Texture2D" uid="uid://clc5f6yyc7sdw" path="res://src/map/assets/Jomon Bells/BELL ANIMATIONS_concrete_0003_color_1k.png" id="5_omyhc"]
|
||||
[ext_resource type="Texture2D" uid="uid://dipyrtjclqae1" path="res://src/map/assets/Jomon Bells/BELL ANIMATIONS_COLUMN.jpg" id="6_hjlh5"]
|
||||
[ext_resource type="Texture2D" uid="uid://d1xdvf8awh4bi" path="res://src/map/assets/Jomon Bells/BELL ANIMATIONS_CHAIN_TEX.png" id="7_55jke"]
|
||||
[ext_resource type="Shader" uid="uid://dr68ani6ouefm" path="res://src/map/map shaders/B1 Cloud Roll.gdshader" id="8_g5dtd"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3e37dca0j8r4" path="res://src/map/dungeon/models/Special Floors & Rooms/Boss Floor A/15_A1_BOSS FLOOR A_VER_CEILING_1.jpg" id="9_uhy5k"]
|
||||
[ext_resource type="Texture2D" uid="uid://nljdi5gnv0wr" path="res://src/map/dungeon/models/Special Floors & Rooms/Boss Floor A/15_A1_BOSS FLOOR A_VER_HAND_CYCLE_MOTIF.png" id="10_khpud"]
|
||||
[ext_resource type="PackedScene" uid="uid://btkyaimv28kjk" path="res://src/map/dungeon/special collision models/BOSS LEVEL 1 Collision.glb" id="11_fbuno"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvv5giqyrhtl1" path="res://src/enemy/enemy_types/15. ox_face/OxFaceStatue.tscn" id="12_3rjuj"]
|
||||
[ext_resource type="PackedScene" uid="uid://6dnsw37d1uw4" path="res://src/enemy/enemy_types/15. ox_face/OxFace.tscn" id="13_nky7n"]
|
||||
[ext_resource type="PackedScene" uid="uid://2wibfnu2jvlv" path="res://src/enemy/enemy_types/14. horse_head/HorseFace.tscn" id="14_i6yjj"]
|
||||
[ext_resource type="PackedScene" uid="uid://8yaqqojv4nuv" path="res://src/enemy/enemy_types/14. horse_head/HorseHeadStatue.tscn" id="15_ypixh"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qckvl"]
|
||||
resource_name = "Material.018"
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("2_lqw6r")
|
||||
albedo_texture = ExtResource("5_omyhc")
|
||||
texture_filter = 2
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_k62tt"]
|
||||
@@ -331,7 +331,7 @@ shadow_mesh = SubResource("ArrayMesh_iphfn")
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_j43tr"]
|
||||
resource_name = "COLUMN"
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("3_ucaw1")
|
||||
albedo_texture = ExtResource("6_hjlh5")
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_h6v5d"]
|
||||
_surfaces = [{
|
||||
@@ -403,7 +403,7 @@ transparency = 2
|
||||
alpha_scissor_threshold = 0.5
|
||||
alpha_antialiasing_mode = 0
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("4_i4jo4")
|
||||
albedo_texture = ExtResource("7_55jke")
|
||||
roughness = 0.5
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_phooe"]
|
||||
@@ -506,7 +506,7 @@ curve = SubResource("Curve_54iu8")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4xaw3"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("30_lmjp4")
|
||||
shader = ExtResource("8_g5dtd")
|
||||
shader_parameter/height_scale = 0.03
|
||||
shader_parameter/wave_speed = 0.2
|
||||
shader_parameter/upper_transparency = 0.99
|
||||
@@ -529,12 +529,12 @@ size = Vector3(1, 6.60916, 9.21739)
|
||||
resource_name = "CEILING 1.007"
|
||||
transparency = 4
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("11_1hwdv")
|
||||
albedo_texture = ExtResource("9_uhy5k")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_g6nnl"]
|
||||
resource_name = "HAND CYCLE"
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("31_2uojg")
|
||||
albedo_texture = ExtResource("10_khpud")
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_lfi70"]
|
||||
_surfaces = [{
|
||||
@@ -647,20 +647,20 @@ adjustment_saturation = 0.94
|
||||
dof_blur_far_distance = 42.38
|
||||
|
||||
[node name="Boss Floor A" type="Node3D"]
|
||||
script = ExtResource("1_0h3lb")
|
||||
script = ExtResource("1_tkvnw")
|
||||
|
||||
[node name="Model" type="Node3D" parent="."]
|
||||
|
||||
[node name="15_A1_BOSS FLOOR A_VER_3" parent="Model" instance=ExtResource("2_r3w6s")]
|
||||
[node name="15_A1_BOSS FLOOR A_VER_3" parent="Model" instance=ExtResource("2_giq3n")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -157.601, -16.1094, 21.8408)
|
||||
|
||||
[node name="LOCKED GATE" parent="Model/15_A1_BOSS FLOOR A_VER_3" index="0"]
|
||||
visible = false
|
||||
|
||||
[node name="sarco altar" parent="Model" instance=ExtResource("58_lqw6r")]
|
||||
[node name="sarco altar" parent="Model" instance=ExtResource("3_3aamq")]
|
||||
transform = Transform3D(0.565, 0, 0, 0, 0.565, 0, 0, 0, 0.565, -92.0811, -2.7728, 3.95434)
|
||||
|
||||
[node name="sarco" parent="Model" instance=ExtResource("59_ucaw1")]
|
||||
[node name="sarco" parent="Model" instance=ExtResource("4_cs1wi")]
|
||||
transform = Transform3D(0.55, 0, 0, 0, 0.55, 0, 0, 0, 0.55, -92.04, -2.83756, 3.9847)
|
||||
|
||||
[node name="BELL ANIMATIONS" type="Node3D" parent="Model"]
|
||||
@@ -761,7 +761,7 @@ transform = Transform3D(0.816274, 0, 0, 0, 1.99383, 0, 0, 0, 1.99383, -144.771,
|
||||
mesh = SubResource("ArrayMesh_i5h1f")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[node name="BOSS LEVEL 1 Collision" parent="Collision/NavigationRegion3D" instance=ExtResource("3_gshnr")]
|
||||
[node name="BOSS LEVEL 1 Collision" parent="Collision/NavigationRegion3D" instance=ExtResource("11_fbuno")]
|
||||
visible = false
|
||||
|
||||
[node name="Main Structure 1_001" parent="Collision/NavigationRegion3D/BOSS LEVEL 1 Collision" index="0"]
|
||||
@@ -868,11 +868,11 @@ shape = SubResource("BoxShape3D_1qa0g")
|
||||
[node name="OxFace" type="Node3D" parent="Bosses"]
|
||||
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -103.103, -0.510939, 13.3065)
|
||||
|
||||
[node name="OxFaceStatue" parent="Bosses/OxFace" instance=ExtResource("26_futcf")]
|
||||
[node name="OxFaceStatue" parent="Bosses/OxFace" instance=ExtResource("12_3rjuj")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 3.55271e-15, 0, 1, 0, -3.55271e-15, 0, 1, 10.2518, -1.84854, -1.2916)
|
||||
|
||||
[node name="OxFace" parent="Bosses/OxFace" instance=ExtResource("27_g6y6v")]
|
||||
[node name="OxFace" parent="Bosses/OxFace" instance=ExtResource("13_nky7n")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 3.55271e-15, 0, 1, 0, -3.55271e-15, 0, 1, 10.5263, -1.96946, -2.35483)
|
||||
visible = false
|
||||
@@ -881,13 +881,13 @@ InitialHP = 125
|
||||
[node name="HorseHead" type="Node3D" parent="Bosses"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.862301, 0, 2.20054)
|
||||
|
||||
[node name="HorseHead" parent="Bosses/HorseHead" instance=ExtResource("14_jb41f")]
|
||||
[node name="HorseHead" parent="Bosses/HorseHead" instance=ExtResource("14_i6yjj")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -101.714, -1.38925, 10.8406)
|
||||
visible = false
|
||||
InitialHP = 125
|
||||
|
||||
[node name="HorseHeadStatue" parent="Bosses/HorseHead" instance=ExtResource("15_1ijgn")]
|
||||
[node name="HorseHeadStatue" parent="Bosses/HorseHead" instance=ExtResource("15_ypixh")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -101.651, -2.53702, 10.6128)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=21 format=3 uid="uid://ceo7ph483io44"]
|
||||
[gd_scene load_steps=22 format=3 uid="uid://ceo7ph483io44"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cvj30id0i8ska" path="res://src/map/dungeon/code/BossRoomB.cs" id="1_bxvob"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1sapqymt8fo8" path="res://src/map/dungeon/special collision models/Boss Floor 2 Collision.glb" id="3_s7h55"]
|
||||
@@ -22,6 +22,9 @@ data = PackedVector3Array(34.8069, -5.6401, 15.5713, 39.9347, -5.6401, 11.3491,
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_bxvob"]
|
||||
size = Vector3(31.5159, 15.6586, 11.8418)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_s7h55"]
|
||||
size = Vector3(12.4734, 21.4398, 22.1963)
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_x4buj"]
|
||||
shader = ExtResource("27_yu47a")
|
||||
shader_parameter/day_top_color = Color(0, 0, 0, 1)
|
||||
@@ -166,6 +169,16 @@ collision_mask = 2
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.197388, 31.0529, 77.0455)
|
||||
shape = SubResource("BoxShape3D_bxvob")
|
||||
|
||||
[node name="Exit" type="Area3D" parent="Room"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.38405, 28.4329, -47.1473)
|
||||
collision_layer = 256
|
||||
collision_mask = 256
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Room/Exit"]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 2.40306, 1.97824, 1.68882)
|
||||
shape = SubResource("BoxShape3D_s7h55")
|
||||
|
||||
[node name="DemonWall" parent="." instance=ExtResource("25_k2q0o")]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.747, 3.84071, 55.334)
|
||||
|
||||
@@ -11157,7 +11157,7 @@ transform = Transform3D(0.99, 0, 0, 0, 0.99, 0, 0, 0, 0.99, -132.777, 0, -5.0904
|
||||
|
||||
[node name="PlayerSpawnPoint" type="Marker3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-0.0104718, 0, 0.999944, 0, 0.999999, 0, -0.999944, 0, -0.0104718, -207.082, 2.4, 35.425)
|
||||
transform = Transform3D(-0.0871557, 0, -0.996193, 0, 0.999999, 0, 0.996193, 0, -0.0871557, -207.082, 3.25741, 35.425)
|
||||
|
||||
[node name="Exit" type="Area3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
@@ -38,6 +38,8 @@ public partial class LoadNextLevel : Control, IFloorClearMenu
|
||||
|
||||
public event Action TransitionCompleted;
|
||||
|
||||
private bool _fadingIn = false;
|
||||
|
||||
public void OnResolved()
|
||||
{
|
||||
_player.ExperiencePointsComponent.Level.Sync += Level_Sync;
|
||||
@@ -60,6 +62,12 @@ public partial class LoadNextLevel : Control, IFloorClearMenu
|
||||
ExitButton.Pressed += ExitButton_Pressed;
|
||||
}
|
||||
|
||||
public override void _Input(InputEvent @event)
|
||||
{
|
||||
if (_fadingIn)
|
||||
GetViewport().SetInputAsHandled();
|
||||
}
|
||||
|
||||
private void CurrentFloorNumber_Sync(int _) => FloorNumber.Text = _map.CurrentFloorNumber.Value.ToString("D2");
|
||||
|
||||
private void EquipmentComponent_EquipmentChanged(EquipableItem obj)
|
||||
@@ -94,15 +102,24 @@ public partial class LoadNextLevel : Control, IFloorClearMenu
|
||||
private void AnimationPlayer_AnimationStarted(StringName animName)
|
||||
{
|
||||
if (animName == "fade_in")
|
||||
{
|
||||
_fadingIn = true;
|
||||
ContinueButton.Disabled = true;
|
||||
ExitButton.Disabled = true;
|
||||
ContinueButton.CallDeferred(MethodName.GrabFocus);
|
||||
}
|
||||
if (animName == "fade_out")
|
||||
{
|
||||
_fadingIn = true;
|
||||
CallDeferred(MethodName.ReleaseFocus);
|
||||
}
|
||||
}
|
||||
|
||||
private void AnimationPlayer_AnimationFinished(StringName animName)
|
||||
{
|
||||
if (animName == "fade_in")
|
||||
{
|
||||
_fadingIn = false;
|
||||
ContinueButton.Disabled = false;
|
||||
ExitButton.Disabled = false;
|
||||
}
|
||||
|
||||
@@ -1,22 +1,12 @@
|
||||
[gd_scene load_steps=18 format=3 uid="uid://cgwiwufvxvfs4"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://cgwiwufvxvfs4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://k16ufrh1147t" path="res://src/ui/load_next_level/LoadNextLevel.cs" id="1_t6aoa"]
|
||||
[ext_resource type="Texture2D" uid="uid://vtecp7jh15kg" path="res://src/ui/rendered_assets/SCREEN_RENDERS_Next_Floor_720_16_9.png" id="2_5vf6u"]
|
||||
[ext_resource type="FontFile" uid="uid://cm8j5vcdop5x0" path="res://src/ui/fonts/Mrs-Eaves-OT-Roman_31443.ttf" id="3_n7di7"]
|
||||
[ext_resource type="StyleBox" uid="uid://bxuy4tnftibfq" path="res://src/options/SelectedOptionsBox.tres" id="4_e3fxd"]
|
||||
[ext_resource type="LabelSettings" uid="uid://bgnwcs434ppkf" path="res://src/ui/label_settings/EbrimaText.tres" id="4_touw6"]
|
||||
[ext_resource type="FontFile" uid="uid://beh6d5lo5ihq0" path="res://src/ui/fonts/georgiai.ttf" id="5_6ox5a"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1tca4"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_crnka"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1pd8j"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_yoep7"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_svmjr"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_cmr8o"]
|
||||
[ext_resource type="StyleBox" uid="uid://bl15q835s4ene" path="res://src/options/UnselectedOptionsBox.tres" id="5_45afn"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ahhj2"]
|
||||
|
||||
@@ -53,7 +43,6 @@ tracks/1/keys = {
|
||||
|
||||
[sub_resource type="Animation" id="Animation_efhb5"]
|
||||
resource_name = "fade_in"
|
||||
length = 2.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
@@ -61,7 +50,7 @@ tracks/0/path = NodePath(".:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 2),
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(0, 0, 0, 1), Color(1, 1, 1, 1)]
|
||||
@@ -81,7 +70,6 @@ tracks/1/keys = {
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ibgld"]
|
||||
resource_name = "fade_out"
|
||||
length = 2.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
@@ -89,7 +77,7 @@ tracks/0/path = NodePath(".:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1.8),
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(0, 0, 0, 1)]
|
||||
@@ -138,8 +126,8 @@ theme_override_constants/separation = 20
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(100, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
focus_neighbor_left = NodePath(".")
|
||||
focus_neighbor_top = NodePath(".")
|
||||
focus_neighbor_right = NodePath(".")
|
||||
@@ -148,11 +136,17 @@ theme_override_colors/font_color = Color(0.737255, 0.705882, 0.690196, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 0.94902, 0, 1)
|
||||
theme_override_fonts/font = ExtResource("3_n7di7")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_1tca4")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_crnka")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_crnka")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_1pd8j")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_crnka")
|
||||
theme_override_styles/focus = ExtResource("4_e3fxd")
|
||||
theme_override_styles/disabled_mirrored = ExtResource("4_e3fxd")
|
||||
theme_override_styles/disabled = ExtResource("4_e3fxd")
|
||||
theme_override_styles/hover_pressed_mirrored = ExtResource("4_e3fxd")
|
||||
theme_override_styles/hover_pressed = ExtResource("4_e3fxd")
|
||||
theme_override_styles/hover_mirrored = ExtResource("4_e3fxd")
|
||||
theme_override_styles/hover = ExtResource("4_e3fxd")
|
||||
theme_override_styles/pressed_mirrored = ExtResource("4_e3fxd")
|
||||
theme_override_styles/pressed = ExtResource("4_e3fxd")
|
||||
theme_override_styles/normal_mirrored = ExtResource("4_e3fxd")
|
||||
theme_override_styles/normal = ExtResource("4_e3fxd")
|
||||
button_mask = 0
|
||||
text = "CONTINUE"
|
||||
flat = true
|
||||
@@ -160,6 +154,7 @@ flat = true
|
||||
[node name="ExitButton" type="Button" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
focus_neighbor_left = NodePath(".")
|
||||
focus_neighbor_top = NodePath("../ContinueButton")
|
||||
focus_neighbor_right = NodePath(".")
|
||||
@@ -168,17 +163,17 @@ theme_override_colors/font_color = Color(0.737255, 0.705882, 0.690196, 1)
|
||||
theme_override_colors/font_focus_color = Color(1, 0.94902, 0, 1)
|
||||
theme_override_fonts/font = ExtResource("3_n7di7")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/disabled_mirrored = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/hover_pressed_mirrored = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/hover_mirrored = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_svmjr")
|
||||
theme_override_styles/pressed_mirrored = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/pressed = SubResource("StyleBoxEmpty_svmjr")
|
||||
theme_override_styles/normal_mirrored = SubResource("StyleBoxEmpty_yoep7")
|
||||
theme_override_styles/normal = SubResource("StyleBoxEmpty_cmr8o")
|
||||
theme_override_styles/focus = ExtResource("4_e3fxd")
|
||||
theme_override_styles/disabled_mirrored = ExtResource("5_45afn")
|
||||
theme_override_styles/disabled = ExtResource("5_45afn")
|
||||
theme_override_styles/hover_pressed_mirrored = ExtResource("5_45afn")
|
||||
theme_override_styles/hover_pressed = ExtResource("5_45afn")
|
||||
theme_override_styles/hover_mirrored = ExtResource("5_45afn")
|
||||
theme_override_styles/hover = ExtResource("5_45afn")
|
||||
theme_override_styles/pressed_mirrored = ExtResource("5_45afn")
|
||||
theme_override_styles/pressed = ExtResource("5_45afn")
|
||||
theme_override_styles/normal_mirrored = ExtResource("5_45afn")
|
||||
theme_override_styles/normal = ExtResource("5_45afn")
|
||||
button_mask = 0
|
||||
text = "EXIT TOWER"
|
||||
flat = true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://bea2waybmgd6u"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://bea2waybmgd6u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dvn7g207w5jaj" path="res://src/ui/in_game_ui/UseTeleportPrompt.cs" id="1_x3wkp"]
|
||||
[ext_resource type="FontFile" uid="uid://cm8j5vcdop5x0" path="res://src/ui/fonts/Mrs-Eaves-OT-Roman_31443.ttf" id="2_i6kb2"]
|
||||
@@ -14,8 +14,6 @@ font_size = 48
|
||||
outline_size = 2
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1pd8j"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xrfau"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
@@ -152,11 +150,11 @@ theme_override_fonts/font = ExtResource("3_tygw6")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
theme_override_styles/focus = ExtResource("4_43cjp")
|
||||
theme_override_styles/disabled_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/disabled = SubResource("StyleBoxEmpty_1pd8j")
|
||||
theme_override_styles/disabled = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover_pressed_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover_pressed = SubResource("StyleBoxEmpty_1pd8j")
|
||||
theme_override_styles/hover_pressed = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover = SubResource("StyleBoxEmpty_1pd8j")
|
||||
theme_override_styles/hover = ExtResource("5_sytxg")
|
||||
theme_override_styles/pressed_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/pressed = ExtResource("5_sytxg")
|
||||
theme_override_styles/normal_mirrored = ExtResource("5_sytxg")
|
||||
@@ -179,8 +177,11 @@ theme_override_fonts/font = ExtResource("3_tygw6")
|
||||
theme_override_font_sizes/font_size = 50
|
||||
theme_override_styles/focus = ExtResource("4_43cjp")
|
||||
theme_override_styles/disabled_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/disabled = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover_pressed_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover_pressed = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/hover = ExtResource("5_sytxg")
|
||||
theme_override_styles/pressed_mirrored = ExtResource("5_sytxg")
|
||||
theme_override_styles/pressed = ExtResource("5_sytxg")
|
||||
theme_override_styles/normal_mirrored = ExtResource("5_sytxg")
|
||||
|
||||
Reference in New Issue
Block a user