Set rooms to be generated in the middle range of outcomes 4-10
This commit is contained in:
parent
401e93075d
commit
d7af8dc4c2
16 changed files with 15675 additions and 17 deletions
|
|
@ -11,15 +11,15 @@ class Program
|
|||
{
|
||||
// Create an instance of your DungeonMapGenerator class
|
||||
var generator = new DungeonGenerator();
|
||||
generator.GenerateDungeon(25, .5f);
|
||||
|
||||
// Call the method you want to run
|
||||
DungeonMap map = generator.GenerateDungeon(25, .5f);
|
||||
int width = 30;
|
||||
int height = 20;
|
||||
DungeonMap map = generator.GenerateDungeon(width, height, 5);
|
||||
DungeonLockPopulator.PopulateLocksOfDungeon(map);
|
||||
DungeonMapSerializer.SerializeToFile(map, SAVED_DUNGEONS_PATH, DUNGEON_NAME );
|
||||
DungeonMapSerializer.SerializeToFile(map, SAVED_DUNGEONS_PATH, $"{DUNGEON_NAME} {width}x{height}" );
|
||||
|
||||
// Print the map to the console (assuming it returns a string or something printable)
|
||||
Console.WriteLine(map.GetMapAsString());
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue