Fix Altar scaling

This commit is contained in:
2026-02-03 20:52:14 -08:00
parent d9c2ba7ed1
commit 3e6e21977e
33 changed files with 206 additions and 198 deletions

View File

@@ -28,7 +28,7 @@ public partial class Map : Node3D, IMap
private readonly string _floorFilePath = @"res://src/map/dungeon/floors/";
public event Action<Transform3D> SpawnPointCreated;
public event Action<(Vector3 Rotation, Vector3 Position)> SpawnPointCreated;
public event Action FloorLoaded;
@@ -49,7 +49,11 @@ public partial class Map : Node3D, IMap
return playersRoom;
}
public Transform3D GetPlayerSpawnPosition() => CurrentFloor.GetPlayerSpawnPoint();
public (Vector3 Rotation, Vector3 Position) GetPlayerSpawnPosition()
{
var spawnPoint = CurrentFloor.GetPlayerSpawnPoint();
return (spawnPoint.Rotation, spawnPoint.Position);
}
public async Task LoadFloor()
{
@@ -75,7 +79,7 @@ public partial class Map : Node3D, IMap
{
AnimationPlayer.CallDeferred(AnimationPlayer.MethodName.Play, "fade_out");
CurrentFloor?.CallDeferred(MethodName.QueueFree, []);
SpawnPointCreated?.Invoke(new Transform3D(Basis.Identity, new Vector3(-999, -999, -999)));
SpawnPointCreated?.Invoke((Vector3.Forward, new Vector3(-999, -999, -999)));
}
private void InitializeFloor(Node newFloor)