Add map loading logic and spawn rate control
This commit is contained in:
@@ -23,6 +23,8 @@ public partial class PauseDebugMenu : Control, IDebugMenu
|
||||
|
||||
[Node] public OptionButton SpawnEnemyDropDown { get; set; } = default!;
|
||||
|
||||
[Node] public Button LoadNextFloorButton { get; set; } = default!;
|
||||
|
||||
private readonly string _floorFilePath = @"res://src/map/dungeon/floors/";
|
||||
private readonly string _enemyFilePath = @"res://src/enemy/enemy_types";
|
||||
|
||||
@@ -33,6 +35,8 @@ public partial class PauseDebugMenu : Control, IDebugMenu
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
LoadNextFloorButton.Pressed += LoadNextFloorButton_Pressed;
|
||||
|
||||
_itemDatabase = new ItemDatabase();
|
||||
_spawnableItems = _itemDatabase.Items;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user