Implemeted dungeon map serialization.
This commit is contained in:
parent
fd2a28afe5
commit
0ff1e92fb9
9 changed files with 1267 additions and 6 deletions
|
|
@ -4,6 +4,9 @@ using DungeonMapGenerator;
|
|||
|
||||
class Program
|
||||
{
|
||||
private const string SAVED_DUNGEONS_PATH = @"C:\Users\User\repos\PuzzleGame\Dungeons";
|
||||
private const string DUNGEON_NAME = "dungeon";
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// Create an instance of your DungeonMapGenerator class
|
||||
|
|
@ -11,7 +14,8 @@ class Program
|
|||
generator.GenerateDungeon(25, .5f);
|
||||
|
||||
// Call the method you want to run
|
||||
var map = generator.GenerateDungeon(25, .5f);
|
||||
DungeonMap map = generator.GenerateDungeon(25, .5f);
|
||||
DungeonMapSerializer.SerializeToFile(map, SAVED_DUNGEONS_PATH, DUNGEON_NAME );
|
||||
|
||||
// Print the map to the console (assuming it returns a string or something printable)
|
||||
Console.WriteLine(map.GetMapAsString());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue