Fixed rooms not being procedurally generated
This commit is contained in:
parent
ff17bece91
commit
5f0c0c5f26
7 changed files with 9802 additions and 3 deletions
Binary file not shown.
|
|
@ -41,8 +41,8 @@ namespace DungeonMapGenerator
|
|||
AddNormalRoomsAroundMonsterRooms(dungeonMap);
|
||||
AddNormalRoomsAroundBossRoom(dungeonMap);
|
||||
AddConnectionRooms(dungeonMap);
|
||||
ConnectAllAdjacentRooms(dungeonMap);
|
||||
AddAdjacentRoomsToEntranceRooms(dungeonMap);
|
||||
ConnectAllAdjacentRooms(dungeonMap);
|
||||
|
||||
return dungeonMap;
|
||||
}
|
||||
|
|
@ -84,7 +84,7 @@ namespace DungeonMapGenerator
|
|||
private void ConnectAllAdjacentRooms(DungeonMap dungeon)
|
||||
{
|
||||
Dictionary<Point, Room> pointRoomMapping = dungeon.GetPointRoomIdMapping();
|
||||
foreach (var room in dungeon.GetEntranceRooms())
|
||||
foreach (var room in dungeon.GetAllRooms())
|
||||
{
|
||||
foreach ((Point p, RoomSide side) in room.GetAdjacentPoints())
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0571a92c0aaa26d45afc285d4ff7ae0d
|
||||
guid: 35b9870cbd44ffe44ac63125beccf381
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
9792
PuzzleGameProject/Assets/Scenes/Decent(No Rewards).unity
Normal file
9792
PuzzleGameProject/Assets/Scenes/Decent(No Rewards).unity
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c58ed09e0da4fd8408b8c3627061c43f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue