Add debug menu, add ability to load next floor or spawn item

This commit is contained in:
2025-04-09 22:45:00 -07:00
parent 40e7fd0ef2
commit a7381658f4
39 changed files with 411 additions and 210 deletions

View File

@@ -335,6 +335,22 @@ public partial class Game : Node3D, IGame
return rolledItem;
}
public override void _Input(InputEvent @event)
{
if (@event.IsActionPressed(GameInputs.Debug) && !InGameUI.DebugMenu.Visible)
{
InGameUI.DebugMenu.Show();
InGameUI.PlayerInfoUI.Hide();
GameRepo.Pause();
}
else if (@event.IsActionPressed(GameInputs.Debug) && InGameUI.DebugMenu.Visible)
{
InGameUI.DebugMenu.Hide();
InGameUI.PlayerInfoUI.Show();
GameRepo.Resume();
}
}
private void DropRestorative(Vector3 vector)
{
var restorativeScene = GD.Load<PackedScene>("res://src/items/restorative/Restorative.tscn");