Item spawning

This commit is contained in:
2024-09-08 14:19:30 -07:00
parent 29a6d1072c
commit a47d1306b9
417 changed files with 17412 additions and 1019 deletions

View File

@@ -14,12 +14,15 @@ public partial class Overworld : Node3D, IDungeonFloor
[Node] public Area3D NPCBox { get; set; } = default!;
[Node] public Marker3D PlayerSpawnPoint { get; set; } = default!;
[Export] public Resource Dialogue { get; set; }
public void InitializeDungeon()
{
NPCBox.AreaEntered += NPCBox_AreaEntered;
NPCBox.AreaExited += NPCBox_AreaExited;
GameRepo.SetPlayerGlobalPosition(PlayerSpawnPoint.GlobalPosition);
}
private void NPCBox_AreaExited(Area3D area)