Basic fighting system

This commit is contained in:
cblech
2025-07-10 03:38:48 +02:00
parent 7e6163ed68
commit b6fd6292e3
26 changed files with 3065 additions and 8 deletions
@@ -0,0 +1,19 @@
using Godot;
namespace Babushka.scripts.CSharp.Common.Fight;
public partial class FightStarter : Node
{
[Export(PropertyHint.ArrayType)] private PackedScene[] enemies;
[Export] private FightInstance _fightInstance;
[Export] private bool _once = true;
private bool hasBeenStarted = false;
public void Start(Node2D _)
{
if (_once && hasBeenStarted)
return;
hasBeenStarted = true;
FightManager.Instance.StartFight(enemies, _fightInstance);
}
}