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

@@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=3 uid="uid://u1e5ae7whhxg"]
[gd_scene load_steps=6 format=3 uid="uid://bc1sp6xwe0j65"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonGenerator3D.gd" id="1_sr15j"]
[ext_resource type="PackedScene" uid="uid://dhpwwqow1ahrc" path="res://src/map/dungeon/rooms/Room1.tscn" id="2_dvdf4"]

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)