mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 23:35:54 +00:00
Fixed door spawning
This commit is contained in:
parent
594406243d
commit
718c20c643
14 changed files with 33 additions and 17 deletions
|
|
@ -169,9 +169,8 @@ public partial class RogueliteRoomManager : Node2D
|
|||
GD.PrintErr("Could not spawn boss room");
|
||||
}
|
||||
|
||||
foreach (var roomEntry in _roomGrid)
|
||||
foreach (var room in SpawnedRooms)
|
||||
{
|
||||
var room = roomEntry.Value;
|
||||
room.HandleDoors((doorEdge, pos) =>
|
||||
{
|
||||
//var neighborPos = room.GridPosition + pos;
|
||||
|
|
@ -235,6 +234,8 @@ public partial class RogueliteRoomManager : Node2D
|
|||
|
||||
spawnedScene.GridPosition = gridPos;
|
||||
|
||||
spawnedScene.Name = room.RoomName;
|
||||
|
||||
SpawnedRooms.Add(spawnedScene);
|
||||
|
||||
// for reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue