Bootstrap fight system

- Fight World data structure
- Generating basic fight world
- Opening correct fight room
- Block paths in fight rooms
- Transition between rooms
This commit is contained in:
jonathan
2025-09-12 13:20:27 +02:00
parent 9bebe1a44d
commit 2929c5dd25
34 changed files with 2457 additions and 12 deletions
@@ -0,0 +1,28 @@
using Godot;
namespace Babushka.scripts.CSharp.Common.Fight;
public partial class FightManager : Node
{
#region AutoLoad ( Contains _EnterTree() )
public static FightManager Instance { get; private set; } = null!;
public override void _EnterTree()
{
Instance = this;
}
#endregion
[Export]
public PackedScene fightingVesnaScene;
public FightParty fightParty = new();
public void StartFight(PackedScene[] enemies, FightInstance instance)
{
GD.Print("Starting Fight");
instance.Start(fightParty, enemies);
}
}