diff options
Diffstat (limited to 'scripts/DungeonGenerator.cs')
| -rw-r--r-- | scripts/DungeonGenerator.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/DungeonGenerator.cs b/scripts/DungeonGenerator.cs new file mode 100644 index 0000000..99b8aac --- /dev/null +++ b/scripts/DungeonGenerator.cs @@ -0,0 +1,19 @@ +using Godot; +using System; + +public partial class DungeonGenerator : Node +{ + private TileMapLayer map; + + [ExportCategory("Parametres")] + [Export] + private int width = 80; + [Export] + private int height = 60; + + public override void _Ready() + { + base._Ready(); + map = GetParent().GetNode<TileMapLayer>("Dungeon"); + } +} |
