Set rooms to be generated in the middle range of outcomes 4-10

This commit is contained in:
Max 2025-02-19 17:19:05 +01:00
parent 401e93075d
commit d7af8dc4c2
16 changed files with 15675 additions and 17 deletions

View file

@ -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();
}
}