Make player, enemy, and items spawn at consistent heights
This commit is contained in:
@@ -297,8 +297,8 @@ public partial class Game : Node3D, IGame
|
||||
private void Map_DungeonFinishedGenerating()
|
||||
{
|
||||
var transform = Map.GetPlayerSpawnPosition();
|
||||
GameRepo.SetPlayerGlobalPosition(transform.Origin);
|
||||
GameRepo.SetPlayerGlobalTransform(transform);
|
||||
GameRepo.SetPlayerGlobalPosition(new Vector3(transform.Origin.X, -2, transform.Origin.Z));
|
||||
GameLogic.Input(new GameLogic.Input.HideFloorClearMenu());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user